pub struct Failure { /* private fields */ }Expand description
Type-erased container holding error information.
This allows storing and passing error metadata without exposing the concrete type.
Implementations§
Source§impl Failure
impl Failure
Sourcepub fn service(&self) -> Option<&'static str>
pub fn service(&self) -> Option<&'static str>
Returns the name of the responsible service, if applicable.
Sourcepub fn signature(&self) -> &'static str
pub fn signature(&self) -> &'static str
Returns a stable identifier for the specific error classification.
Trait Implementations§
Source§impl Error for Failure
impl Error for Failure
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Failure
impl !Send for Failure
impl !Sync for Failure
impl !UnwindSafe for Failure
impl Freeze for Failure
impl Unpin for Failure
impl UnsafeUnpin 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