Trait remoc::rch::SendErrorExt

source ·
pub trait SendErrorExt {
    // Required methods
    fn is_closed(&self) -> bool;
    fn is_disconnected(&self) -> bool;
    fn is_final(&self) -> bool;
    fn is_item_specific(&self) -> bool;
}
Available on crate feature rch only.
Expand description

Common functions to query send errors for details.

This is implemented for all send errors in this module.

Since watch channels have no method to close them, is_closed and is_disconnected are equivalent for them.

Required Methods§

source

fn is_closed(&self) -> bool

Whether the remote endpoint closed the channel.

source

fn is_disconnected(&self) -> bool

Whether the remote endpoint closed the channel, was dropped or the connection failed.

source

fn is_final(&self) -> bool

Whether the error is final, i.e. no further send operation can succeed.

source

fn is_item_specific(&self) -> bool

Whether the error is caused by the item to be sent.

Implementors§

source§

impl SendErrorExt for remoc::rch::watch::SendError

source§

impl<T> SendErrorExt for remoc::rch::broadcast::SendError<T>

source§

impl<T> SendErrorExt for remoc::rch::mpsc::SendError<T>

source§

impl<T> SendErrorExt for TrySendError<T>

source§

impl<T> SendErrorExt for remoc::rch::oneshot::SendError<T>

source§

impl<T> SendErrorExt for remoc::rch::base::SendError<T>

source§

impl<T> SendErrorExt for remoc::rch::lr::SendError<T>