Struct futures::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 closeed.
Methods
impl<S> Close<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 closeed.
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 closeed.
pub fn into_inner(self) -> Option<S>[src]
Consume the Close and return the inner sink.
Returns None if the sink has already been closeed.
Trait Implementations
impl<S> Debug for Close<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 Close<S> where
S: Sink, [src]
S: Sink,