Struct tokio::io::Take [−][src]
pub struct Take<R> { /* fields omitted */ }
Expand description
Stream for the take
method.
Implementations
Sets the number of bytes that can be read before this instance will
return EOF. This is the same as constructing a new Take
instance, so
the amount of bytes read and the previous limit value don’t matter when
calling this method.
Gets a mutable reference to the underlying reader.
Care should be taken to avoid modifying the internal I/O state of the
underlying reader as doing so may corrupt the internal limit of this
Take
.
Gets a pinned mutable reference to the underlying reader.
Care should be taken to avoid modifying the internal I/O state of the
underlying reader as doing so may corrupt the internal limit of this
Take
.
Consumes the Take
, returning the wrapped reader.
Trait Implementations
Attempts to return the contents of the internal buffer, filling it with more data from the inner reader if it is empty. Read more