pub struct ChainedError { /* private fields */ }Expand description
A generic error which represents a linked-list of errors and exposes it with source(). It’s meant to be the target of a conversion of any Exn error tree.
It’s useful for inter-op with other error handling crates like anyhow which offer simplified access to the error chain,
and thus is expected to be wrapped in one of their types intead of being used directly.
Trait Implementations§
Source§impl Debug for ChainedError
impl Debug for ChainedError
Source§impl Display for ChainedError
impl Display for ChainedError
Source§impl Error for ChainedError
impl Error for ChainedError
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 Freeze for ChainedError
impl !RefUnwindSafe for ChainedError
impl Send for ChainedError
impl Sync for ChainedError
impl Unpin for ChainedError
impl !UnwindSafe for ChainedError
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
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§fn raise_erased(self) -> Exnwhere
Self: Sized,
fn raise_erased(self) -> Exnwhere
Self: Sized,
Raise this error as a new exception, with type erasure.