[−][src]Struct futures_util::io::Read
pub struct Read<'a, R: ?Sized + 'a> { /* fields omitted */ }
A future which can be used to easily read available number of bytes to fill a buffer.
Trait Implementations
impl<'a, R: Debug + ?Sized + 'a> Debug for Read<'a, R>
[src]
impl<'a, R: Debug + ?Sized + 'a> Debug for Read<'a, R>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<R: ?Sized, '_> Unpin for Read<'_, R>
[src]
impl<R: ?Sized, '_> Unpin for Read<'_, R>
impl<R: AsyncRead + ?Sized, '_> Future for Read<'_, R>
[src]
impl<R: AsyncRead + ?Sized, '_> Future for Read<'_, R>
type Output = Result<usize>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::Output>
[src]
fn poll(self: PinMut<Self>, cx: &mut Context) -> Poll<Self::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