Struct futures::io::ReadExact
[−]
[src]
pub struct ReadExact<A, T> { /* fields omitted */ }
A future which can be used to easily read exactly enough bytes to fill a buffer.
Created by the read_exact
function.
Trait Implementations
impl<A, T> Future for ReadExact<A, T> where
A: AsyncRead,
T: AsMut<[u8]>,
[src]
A: AsyncRead,
T: AsMut<[u8]>,
type Item = (A, T)
A successful value
type Error = Error
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<(A, T)>, 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<A, T> Debug for ReadExact<A, T> where
A: Debug,
T: Debug,
[src]
A: Debug,
T: Debug,