pub struct Error(/* private fields */);
Expand description
This crate specific Error
type.
Methods from Deref<Target = TrackableError<ErrorKind>>§
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 Error for Error
impl Error for Error
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<MessageError> for Error
impl From<MessageError> for Error
source§fn from(f: MessageError) -> Error
fn from(f: MessageError) -> Error
Converts to this type from the input type.
source§impl Trackable for Error
impl Trackable for Error
source§fn history(&self) -> Option<&History<<Error as Trackable>::Event>>
fn history(&self) -> Option<&History<<Error as Trackable>::Event>>
Returns the reference of the tracking history of this instance. Read more
source§fn history_mut(&mut self) -> Option<&mut History<<Error as Trackable>::Event>>
fn history_mut(&mut self) -> Option<&mut History<<Error as Trackable>::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 Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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