pub struct TraceError<E>(/* private fields */);Expand description
An ErrorSource that should implement Error and
other constraints such as Send, Sync, 'static, so that it can be traced
by error tracing libraries such as eyre and anyhow. Because these libraries
take ownership of the source error object, the error cannot be extracted as detail
at the same time.
Trait Implementations§
Source§impl<E, Tracer> ErrorSource<Tracer> for TraceError<E>where
Tracer: ErrorTracer<E>,
impl<E, Tracer> ErrorSource<Tracer> for TraceError<E>where
Tracer: ErrorTracer<E>,
Auto Trait Implementations§
impl<E> Freeze for TraceError<E>
impl<E> RefUnwindSafe for TraceError<E>where
E: RefUnwindSafe,
impl<E> Send for TraceError<E>where
E: Send,
impl<E> Sync for TraceError<E>where
E: Sync,
impl<E> Unpin for TraceError<E>where
E: Unpin,
impl<E> UnwindSafe for TraceError<E>where
E: UnwindSafe,
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