pub struct ContextError<E, C> {
pub error: E,
pub context: C,
}
Expand description
Error type with context
Fields§
§error: E
§context: C
Trait Implementations§
Source§impl<E, C> Display for ContextError<E, C>
impl<E, C> Display for ContextError<E, C>
Source§impl<E, C> Error for ContextError<E, C>
impl<E, C> Error for ContextError<E, C>
Source§fn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<E, C> Freeze for ContextError<E, C>
impl<E, C> RefUnwindSafe for ContextError<E, C>where
E: RefUnwindSafe,
C: RefUnwindSafe,
impl<E, C> Send for ContextError<E, C>
impl<E, C> Sync for ContextError<E, C>
impl<E, C> Unpin for ContextError<E, C>
impl<E, C> UnwindSafe for ContextError<E, C>where
E: UnwindSafe,
C: 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