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§
sourcefn is_disconnected(&self) -> bool
fn is_disconnected(&self) -> bool
Whether the remote endpoint closed the channel, was dropped or the connection failed.
sourcefn is_final(&self) -> bool
fn is_final(&self) -> bool
Whether the error is final, i.e. no further send operation can succeed.
sourcefn is_item_specific(&self) -> bool
fn is_item_specific(&self) -> bool
Whether the error is caused by the item to be sent.