pub struct FailureDiagnostic(/* private fields */);Expand description
Type-erased diagnostic view of a Failure.
Returned by AsError::as_diag() for a Failure.
Trait Implementations§
Source§impl Debug for FailureDiagnostic
impl Debug for FailureDiagnostic
Source§impl Display for FailureDiagnostic
impl Display for FailureDiagnostic
Source§impl Error for FailureDiagnostic
impl Error for FailureDiagnostic
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 FailureDiagnostic
impl !Send for FailureDiagnostic
impl !Sync for FailureDiagnostic
impl !UnwindSafe for FailureDiagnostic
impl Freeze for FailureDiagnostic
impl Unpin for FailureDiagnostic
impl UnsafeUnpin for FailureDiagnostic
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