pub enum ChainTail {
Backtrace(Backtrace),
Error(Error),
}
Expand description
Helper type which is either a Backtrace
or an full failure::Error
.
This can be used to either just contain a backtrace into an custom error or to chain it in front of another error without adding another backtrace, depending on the creating context.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChainTail
impl !RefUnwindSafe for ChainTail
impl Send for ChainTail
impl Sync for ChainTail
impl Unpin for ChainTail
impl !UnwindSafe for ChainTail
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