Struct futures::io::ReadToEnd [−][src]
pub struct ReadToEnd<'a, R> where
R: 'a + ?Sized, { /* 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, R> Unpin for ReadToEnd<'a, R> where
R: ?Sized,
[src]
impl<'a, R> Unpin for ReadToEnd<'a, R> where
R: ?Sized,
impl<'a, R> Debug for ReadToEnd<'a, R> where
R: 'a + Debug + ?Sized,
[src]
impl<'a, R> Debug for ReadToEnd<'a, R> where
R: 'a + Debug + ?Sized,
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'a, A> Future for ReadToEnd<'a, A> where
A: AsyncRead + ?Sized,
[src]
impl<'a, A> Future for ReadToEnd<'a, A> where
A: AsyncRead + ?Sized,
type Output = Result<(), Error>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<ReadToEnd<'a, A>>,
cx: &mut Context
) -> Poll<<ReadToEnd<'a, A> as Future>::Output>
[src]
fn poll(
self: PinMut<ReadToEnd<'a, A>>,
cx: &mut Context
) -> Poll<<ReadToEnd<'a, A> as Future>::Output>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more