Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upstd::io::Take should have into_inner() method #23755
Comments
lilyball
added
A-libs
C-enhancement
labels
Mar 26, 2015
huonw
added
the
T-libs
label
Jan 8, 2016
This comment has been minimized.
This comment has been minimized.
|
triage: I-nominated A lot of library types have |
rust-highfive
added
the
I-nominated
label
Jan 8, 2016
This comment has been minimized.
This comment has been minimized.
|
triage: P-medium @sfackler indicated that he was interested in making a PR for this and limiting it to the I/O adaptors for now. |
rust-highfive
added
P-medium
and removed
I-nominated
labels
Jan 21, 2016
This comment has been minimized.
This comment has been minimized.
|
@sfackler Are you still working on this? Or can I take this? |
brson
added
E-easy
P-low
and removed
P-medium
labels
Aug 25, 2016
This comment has been minimized.
This comment has been minimized.
|
@frewsxcv you got it. |
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Aug 26, 2016
frewsxcv
referenced this issue
Aug 26, 2016
Merged
Introduce `into_inner` method on `std::io::Take`. #36019
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Aug 26, 2016
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Aug 26, 2016
This comment has been minimized.
This comment has been minimized.
|
Opened a PR: #36019. |
bors
added a commit
that referenced
this issue
Sep 13, 2016
This comment has been minimized.
This comment has been minimized.
|
Shouldn't this be closed? |
This comment has been minimized.
This comment has been minimized.
|
Tracking issues (like this one) stay upon until the feature has stabilized. Right now, |
This comment has been minimized.
This comment has been minimized.
|
Looks like the |
sfackler
added
B-unstable
and removed
A-io
E-easy
C-enhancement
P-low
labels
Oct 2, 2016
This comment has been minimized.
This comment has been minimized.
|
Yep, was just about to ping the |
This comment has been minimized.
This comment has been minimized.
|
Misread what you wrote the first time I read your comment. Added the issue number to the |
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 1, 2016
•
|
Team member @alexcrichton has proposed to merge this. The next step is review by the rest of the tagged teams: No concerns currently listed. Once these reviewers reach consensus, this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 12, 2016
|
psst @alexcrichton, I wasn't able to add the |
alexcrichton
added
the
final-comment-period
label
Nov 12, 2016
This comment has been minimized.
This comment has been minimized.
rfcbot
commented
Nov 22, 2016
|
The final comment period is now complete. |
lilyball commentedMar 26, 2015
It seems like a reasonably obvious thing to do and would be trivial to implement. The only alternative right now is to always use
.by_ref()before calling.take(), and that's not always viable (e.g. because theio::Takeneeds to be kept around without borrowing the owner of the underlying reader).An example usage would be implementing a message-based protocol on top of a stream protocol, where the messages either have fixed-length frames or have length indicators, I might want to call
.take()to be able to work with a single message and then.into_inner()when I'm done to recover the underlying reader.