Trait completion_io::AsyncReadWith [−][src]
Read bytes from a source asynchronously with a specific lifetime.
Associated Types
type ReadFuture: CompletionFuture<Output = Result<()>>
[src]
The future that reads from the source.
Required methods
fn read(&'a mut self, buf: ReadBufMut<'a>) -> Self::ReadFuture
[src]
Pull some bytes from this source into the specified buffer.
If this reads 0 bytes of data, either the buffer was 0 bytes in length or the stream has reached EOF.