Struct futures::io::ReadToEnd
[−]
[src]
pub struct ReadToEnd<A> { /* fields omitted */ }
A future which can be used to easily read the entire contents of a stream into a vector.
Created by the read_to_end
function.
Trait Implementations
impl<A> Future for ReadToEnd<A> where
A: AsyncRead,
[src]
A: AsyncRead,
type Item = (A, Vec<u8>)
A successful value
type Error = Error
An error
fn poll(&mut self, cx: &mut Context) -> Result<Async<(A, Vec<u8>)>, 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> Debug for ReadToEnd<A> where
A: Debug,
[src]
A: Debug,