pub struct BoxError(/* private fields */);Expand description
Used to encapsulate opaque dyn core::error::Error types.
This wrapper allows you to work with arbitrary error types in a uniform way while preserving the original error information.
Implementations§
Trait Implementations§
Source§impl Error for BoxError
impl Error for BoxError
1.30.0 · 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 BoxError
impl !UnwindSafe for BoxError
impl Freeze for BoxError
impl Send for BoxError
impl Sync for BoxError
impl Unpin for BoxError
impl UnsafeUnpin for BoxError
Blanket Implementations§
impl<T> Attachment for T
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