Struct futures_util::sink::Send
[−]
[src]
#[must_use = "futures do nothing unless polled"]pub struct Send<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: Sink> Send<S>
[src]
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 + Sink> Debug for Send<S> where
S::SinkItem: Debug,
[src]
S::SinkItem: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more