pub struct UnboxedError<ErrorKindT: Fail> { /* private fields */ }
Expand description
An error type which stores the backtrace, cause pointer and error kind inline.
This is potentially a very large object, but it doesn’t allocate on creation unlike
BoxedError
.
Implementations§
Source§impl<ErrorKindT: Fail> UnboxedError<ErrorKindT>
impl<ErrorKindT: Fail> UnboxedError<ErrorKindT>
pub fn kind(&self) -> &ErrorKindT
Trait Implementations§
Source§impl<ErrorKindT: Fail> Display for UnboxedError<ErrorKindT>
impl<ErrorKindT: Fail> Display for UnboxedError<ErrorKindT>
Source§impl<ErrorKindT: Fail> Fail for UnboxedError<ErrorKindT>
impl<ErrorKindT: Fail> Fail for UnboxedError<ErrorKindT>
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreAuto Trait Implementations§
impl<ErrorKindT> !Freeze for UnboxedError<ErrorKindT>
impl<ErrorKindT> !RefUnwindSafe for UnboxedError<ErrorKindT>
impl<ErrorKindT> Send for UnboxedError<ErrorKindT>
impl<ErrorKindT> Sync for UnboxedError<ErrorKindT>
impl<ErrorKindT> Unpin for UnboxedError<ErrorKindT>where
ErrorKindT: Unpin,
impl<ErrorKindT> !UnwindSafe for UnboxedError<ErrorKindT>
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