#[repr(C)]pub(crate) struct ContextError<C, E> {
pub context: C,
pub error: E,
}
Fields§
§context: C
§error: E
Trait Implementations§
Source§impl<C, E> Debug for ContextError<C, E>
impl<C, E> Debug for ContextError<C, E>
Source§impl<C, E> Display for ContextError<C, E>where
C: Display,
impl<C, E> Display for ContextError<C, E>where
C: Display,
Source§impl<C, E> Error for ContextError<C, E>
impl<C, E> Error for ContextError<C, E>
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()
Source§impl<C> Error for ContextError<C, Error>where
C: Display,
impl<C> Error for ContextError<C, Error>where
C: Display,
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<C, E> Freeze for ContextError<C, E>
impl<C, E> RefUnwindSafe for ContextError<C, E>where
C: RefUnwindSafe,
E: RefUnwindSafe,
impl<C, E> Send for ContextError<C, E>
impl<C, E> Sync for ContextError<C, E>
impl<C, E> Unpin for ContextError<C, E>
impl<C, E> UnwindSafe for ContextError<C, E>where
C: UnwindSafe,
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