pub struct BoxedError { /* private fields */ }
Available on crate feature
alloc
only.Expand description
An error type that preserves all detailed error messages. It is optimized to fit in a single pointer.
Trait Implementations§
Source§impl Debug for BoxedError
impl Debug for BoxedError
Source§impl Display for BoxedError
impl Display for BoxedError
Source§impl Error for BoxedError
impl Error for BoxedError
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()
Source§impl Source for BoxedError
impl Source for BoxedError
Auto Trait Implementations§
impl Freeze for BoxedError
impl !RefUnwindSafe for BoxedError
impl Send for BoxedError
impl Sync for BoxedError
impl !Unpin for BoxedError
impl !UnwindSafe for BoxedError
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