Struct astral::thirdparty::slog::ErrorValue
pub struct ErrorValue<E>(pub E)
where
E: Error;
Expand description
A wrapper struct for serializing errors
This struct can be used to wrap types that don’t implement slog::Value
but
do implement std::error::Error
so that they can be logged.
This is usually not used directly but using #error
in the macros.
This struct is only available in std
because the Error
trait is not available
without std
.
Tuple Fields
0: E
Trait Implementations
Auto Trait Implementations
impl<E> RefUnwindSafe for ErrorValue<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorValue<E>where
E: Send,
impl<E> Sync for ErrorValue<E>where
E: Sync,
impl<E> Unpin for ErrorValue<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorValue<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more