pub struct BoxedError2 { /* private fields */ }Implementations§
Source§impl BoxedError2
impl BoxedError2
pub fn is_root(&self) -> bool
pub fn is<T: Error + 'static>(&self) -> bool
pub fn downcast_ref<T: Error + 'static>( &self, ) -> Option<ErrorKind<&T, &Backtrace>>
pub fn downcast_mut<T: Error + 'static>( &mut self, ) -> Option<ErrorKind<&mut T, &mut Backtrace>>
pub fn downcast<T: Error + 'static>( self, ) -> Result<ErrorKind<T, Backtrace>, Self>
Source§impl BoxedError2
impl BoxedError2
pub fn from_root<R>(root: R) -> BoxedError2
pub fn from_root_with_location<R>(root: R, location: Location) -> BoxedError2
pub fn from_std<T>(source: T) -> BoxedError2
pub fn from_std_with_location<T>(source: T, location: Location) -> BoxedError2
pub fn from_err2<T>(source: T) -> BoxedError2
pub fn from_err2_with_location<T>(source: T, location: Location) -> BoxedError2
Trait Implementations§
Source§impl Debug for BoxedError2
impl Debug for BoxedError2
Source§impl Display for BoxedError2
impl Display for BoxedError2
Source§impl Error for BoxedError2
impl Error for BoxedError2
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 BoxedError2
impl !RefUnwindSafe for BoxedError2
impl Send for BoxedError2
impl Sync for BoxedError2
impl Unpin for BoxedError2
impl !UnwindSafe for BoxedError2
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