Struct stacked_errors::StackedError
source · pub struct StackedError(pub Error);
Expand description
Due to trait conflicts and not wanting users to accidentally embed
crate::Error
in a BoxedErr
of another crate::Error
, crate::Error
itself does not actually implement std::error::Error
. This does not pose a
problem in most cases, since main
functions can return Return<T, Error>
.
However, if a user absolutely needs an end result struct implementing
std::error::Error
, they can use this wrapper.
Tuple Fields§
§0: Error
Trait Implementations§
source§impl Debug for StackedError
impl Debug for StackedError
source§impl Display for StackedError
impl Display for StackedError
source§impl Error for StackedError
impl Error for StackedError
1.30.0 · 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()
Auto Trait Implementations§
impl !RefUnwindSafe for StackedError
impl Send for StackedError
impl Sync for StackedError
impl Unpin for StackedError
impl !UnwindSafe for StackedError
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