Trait SinkTrySendError

Source
pub trait SinkTrySendError: Error + 'static {
    // Required methods
    fn is_full(&self) -> bool;
    fn is_disconnected(&self) -> bool;
}
Expand description

Error from SinkTrySend::try_send

See also ErasedSinkTrySendError which can often be usefully used when an implementation of SinkTrySendError is needed.

Required Methods§

Source

fn is_full(&self) -> bool

The stream was full.

No arrangements will have been made for a wakeup when space becomes available.

Corresponds to [futures::channel::mpsc::TrySendError::is_full]

Source

fn is_disconnected(&self) -> bool

The stream has disconnected

Corresponds to [futures::channel::mpsc::TrySendError::is_disconnected]

Implementors§