pub struct ErrorNoContext<E>(pub E);
Expand description
Wrap value in ErrorNoContext
to add more context using WithContext
trait that will convert it to ErrorContext
Tuple Fields§
§0: E
Trait Implementations§
Source§impl<E: Debug> Debug for ErrorNoContext<E>
impl<E: Debug> Debug for ErrorNoContext<E>
Source§impl<E> Display for ErrorNoContext<E>where
E: Display,
impl<E> Display for ErrorNoContext<E>where
E: Display,
Source§impl<E> Error for ErrorNoContext<E>where
E: Error,
impl<E> Error for ErrorNoContext<E>where
E: Error,
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl<E, C> WithContext<C> for ErrorNoContext<E>
impl<E, C> WithContext<C> for ErrorNoContext<E>
type ContextError = ErrorContext<E, C>
fn with_context(self, context: C) -> ErrorContext<E, C>
Auto Trait Implementations§
impl<E> Freeze for ErrorNoContext<E>where
E: Freeze,
impl<E> RefUnwindSafe for ErrorNoContext<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorNoContext<E>where
E: Send,
impl<E> Sync for ErrorNoContext<E>where
E: Sync,
impl<E> Unpin for ErrorNoContext<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorNoContext<E>where
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