pub struct Failure(_);
Expand description
TrackableError
type specialized for Failed
.
Implementations§
Methods from Deref<Target = TrackableError<Failed>>§
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<'de> Deserialize<'de> for Failure
impl<'de> Deserialize<'de> for Failure
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Error for Failure
impl Error for Failure
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<TrackableError<Failed>> for Failure
impl From<TrackableError<Failed>> for Failure
source§fn from(f: TrackableError<Failed>) -> Self
fn from(f: TrackableError<Failed>) -> Self
Converts to this type from the input type.
source§impl Trackable for Failure
impl Trackable for Failure
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)where
F: FnOnce() -> Self::Event,
fn track<F>(&mut self, f: F)where F: FnOnce() -> Self::Event,
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 Failure
impl Send for Failure
impl Sync for Failure
impl Unpin for Failure
impl !UnwindSafe for Failure
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