Struct futures_util::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: Sink> Flush<S>
[src]
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> Debug for Flush<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more