Struct futures::io::Read
[−]
[src]
pub struct Read<R, T> { /* fields omitted */ }
A future which can be used to easily read available number of bytes to fill a buffer.
Created by the [read
] function.
Trait Implementations
impl<R, T> Future for Read<R, T> where
R: AsyncRead,
T: AsMut<[u8]>,
[src]
R: AsyncRead,
T: AsMut<[u8]>,
type Item = (R, T, usize)
A successful value
type Error = Error
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<(R, T, usize)>, Error>
[src]
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
impl<R, T> Debug for Read<R, T> where
R: Debug,
T: Debug,
[src]
R: Debug,
T: Debug,