Struct futures::sink::Send
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Send<S> where
S: Sink, { /* fields omitted */ }
Future for the Sink::send
combinator, which sends a value to a sink and
then waits until the sink has fully flushed.
Methods
impl<S> Send<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 future has completed already.
pub fn get_mut(&mut self) -> Option<&mut S>
[src]
Get a mutable reference to the inner sink.
Returns None
if the future has completed already.
Trait Implementations
impl<S> Debug for Send<S> where
S: Debug + Sink,
<S as Sink>::SinkItem: Debug,
[src]
S: Debug + Sink,
<S as Sink>::SinkItem: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl<S> Future for Send<S> where
S: Sink,
[src]
S: Sink,