pub struct DetailOnly<Detail>(/* private fields */);
Expand description
An ErrorSource
that only provides error details but do not provide any trace.
This can typically comes from primitive error types that do not implement
Error
. The Detail
type is the error and the returned
trace is None
.
It is also possible to omit specifying the error as an error source, and instead
place it as a field in the error variant. However specifying it as a DetailOnly
source may give stronger hint to the reader that the particular error variant
is caused by other underlying errors.
Trait Implementations§
Source§impl<Detail, Trace> ErrorSource<Trace> for DetailOnly<Detail>
impl<Detail, Trace> ErrorSource<Trace> for DetailOnly<Detail>
Auto Trait Implementations§
impl<Detail> Freeze for DetailOnly<Detail>
impl<Detail> RefUnwindSafe for DetailOnly<Detail>where
Detail: RefUnwindSafe,
impl<Detail> Send for DetailOnly<Detail>where
Detail: Send,
impl<Detail> Sync for DetailOnly<Detail>where
Detail: Sync,
impl<Detail> Unpin for DetailOnly<Detail>where
Detail: Unpin,
impl<Detail> UnwindSafe for DetailOnly<Detail>where
Detail: 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