Struct futures_util::sink::Close
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Close<S> { /* fields omitted */ }
Future for the close
combinator, which polls the sink until all data has
been closed.
Methods
impl<S: Sink> Close<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 closed.
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 closed.
pub fn into_inner(self) -> Option<S>
[src]
Consume the Close
and return the inner sink.
Returns None
if the sink has already been closed.
Trait Implementations
impl<S: Debug> Debug for Close<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more