Struct futures::sink::Flush [−][src]
#[must_use = "futures do nothing unless polled"]pub struct Flush<'a, Si> where
Si: 'a + Unpin + ?Sized, { /* fields omitted */ }
Future for the flush
combinator, which polls the sink until all data
has been flushed.
Trait Implementations
impl<'a, Si> Unpin for Flush<'a, Si> where
Si: Unpin + ?Sized,
[src]
impl<'a, Si> Unpin for Flush<'a, Si> where
Si: Unpin + ?Sized,
impl<'a, Si> Debug for Flush<'a, Si> where
Si: 'a + Unpin + Debug + ?Sized,
[src]
impl<'a, Si> Debug for Flush<'a, Si> where
Si: 'a + Unpin + 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, Si> Future for Flush<'a, Si> where
Si: Unpin + Sink + ?Sized,
[src]
impl<'a, Si> Future for Flush<'a, Si> where
Si: Unpin + Sink + ?Sized,
type Output = Result<(), <Si as Sink>::SinkError>
🔬 This is a nightly-only experimental API. (futures_api
)
futures in libcore are unstable
The result of the Future
.
fn poll(
self: PinMut<Flush<'a, Si>>,
cx: &mut Context
) -> Poll<<Flush<'a, Si> as Future>::Output>
[src]
fn poll(
self: PinMut<Flush<'a, Si>>,
cx: &mut Context
) -> Poll<<Flush<'a, Si> 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