Struct mesh_channel::ChannelError
source · pub struct ChannelError(/* private fields */);
Expand description
An error representing a failure of a channel.
Implementations§
source§impl ChannelError
impl ChannelError
sourcepub fn kind(&self) -> ChannelErrorKind
pub fn kind(&self) -> ChannelErrorKind
Returns the kind of channel failure that occurred.
Trait Implementations§
source§impl Debug for ChannelError
impl Debug for ChannelError
source§impl Display for ChannelError
impl Display for ChannelError
source§impl Error for ChannelError
impl Error for ChannelError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ChannelError> for RecvError
impl From<ChannelError> for RecvError
source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
source§impl From<ChannelError> for TryRecvError
impl From<ChannelError> for TryRecvError
source§fn from(source: ChannelError) -> Self
fn from(source: ChannelError) -> Self
Converts to this type from the input type.
source§impl From<Error> for ChannelError
impl From<Error> for ChannelError
Auto Trait Implementations§
impl Freeze for ChannelError
impl !RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl !UnwindSafe for ChannelError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more