Struct rustun::message::MessageError
source · pub struct MessageError(/* private fields */);
Expand description
Message level error.
Methods from Deref<Target = TrackableError<MessageErrorKind>>§
sourcepub fn concrete_cause<T>(&self) -> Option<&T>where
T: Error + 'static,
pub fn concrete_cause<T>(&self) -> Option<&T>where
T: Error + 'static,
Tries to return the cause of this error as a value of T
type.
If neither this error has a cause nor it is an T
value,
this method will return None
.
Trait Implementations§
source§impl Clone for MessageError
impl Clone for MessageError
source§fn clone(&self) -> MessageError
fn clone(&self) -> MessageError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MessageError
impl Debug for MessageError
source§impl Deref for MessageError
impl Deref for MessageError
§type Target = TrackableError<MessageErrorKind>
type Target = TrackableError<MessageErrorKind>
The resulting type after dereferencing.
source§impl Display for MessageError
impl Display for MessageError
source§impl Error for MessageError
impl Error for MessageError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for MessageError
impl From<Error> for MessageError
source§impl From<Error> for MessageError
impl From<Error> for MessageError
source§impl From<MessageError> for Error
impl From<MessageError> for Error
source§fn from(f: MessageError) -> Self
fn from(f: MessageError) -> Self
Converts to this type from the input type.
source§impl From<MessageError> for TrackableError<MessageErrorKind>
impl From<MessageError> for TrackableError<MessageErrorKind>
source§fn from(f: MessageError) -> Self
fn from(f: MessageError) -> Self
Converts to this type from the input type.
source§impl From<MessageErrorKind> for MessageError
impl From<MessageErrorKind> for MessageError
source§fn from(f: MessageErrorKind) -> Self
fn from(f: MessageErrorKind) -> Self
Converts to this type from the input type.
source§impl From<MonitorError<MessageError>> for MessageError
impl From<MonitorError<MessageError>> for MessageError
source§fn from(f: MonitorError<MessageError>) -> Self
fn from(f: MonitorError<MessageError>) -> Self
Converts to this type from the input type.
source§impl From<TrackableError<MessageErrorKind>> for MessageError
impl From<TrackableError<MessageErrorKind>> for MessageError
source§fn from(f: TrackableError<MessageErrorKind>) -> Self
fn from(f: TrackableError<MessageErrorKind>) -> Self
Converts to this type from the input type.
source§impl Trackable for MessageError
impl Trackable for MessageError
source§fn history(&self) -> Option<&History<Self::Event>>
fn history(&self) -> Option<&History<Self::Event>>
Returns the reference of the tracking history of this instance. Read more
source§fn history_mut(&mut self) -> Option<&mut History<Self::Event>>
fn history_mut(&mut self) -> Option<&mut History<Self::Event>>
Returns the mutable reference of the tracking history of this instance. Read more
source§fn track<F>(&mut self, f: F)
fn track<F>(&mut self, f: F)
Add an event into the tail of the history of this instance. Read more
source§fn in_tracking(&self) -> bool
fn in_tracking(&self) -> bool
Returns
true
if it is being tracked, otherwise false
.Auto Trait Implementations§
impl !RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl !UnwindSafe for MessageError
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