Struct flex_error::StdError [−][src]
pub struct StdError<E>(_);
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
impl<E, Tracer> ErrorSource<Tracer> for StdError<E> where
Tracer: ErrorTracer<E>,
[src]
impl<E, Tracer> ErrorSource<Tracer> for StdError<E> where
Tracer: ErrorTracer<E>,
[src]type Source = E
type Source = E
The type of the error source.
Auto Trait Implementations
impl<E> RefUnwindSafe for StdError<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for StdError<E> where
E: Send,
E: Send,
impl<E> Sync for StdError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for StdError<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for StdError<E> where
E: UnwindSafe,
E: UnwindSafe,