Struct futures::sink::Flush
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Flush<S> { /* fields omitted */ }
Future for the flush
combinator, which polls the sink until all data
has been flushed.
Methods
impl<S> Flush<S> where
S: Sink,
[src]
S: Sink,
pub fn get_ref(&self) -> Option<&S>
[src]
Get a shared reference to the inner sink.
Returns None
if the sink has already been flushed.
pub fn get_mut(&mut self) -> Option<&mut S>
[src]
Get a mutable reference to the inner sink.
Returns None
if the sink has already been flushed.
pub fn into_inner(self) -> Option<S>
[src]
Consume the Flush
and return the inner sink.
Returns None
if the sink has already been flushed.
Trait Implementations
impl<S> Debug for Flush<S> where
S: Debug,
[src]
S: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<S> Future for Flush<S> where
S: Sink,
[src]
S: Sink,