[−][src]Struct err_context::BoxContext
Additional context for boxed errors.
This has the same purpose and the same functionality as Context
. It is a separate type for
technical reasons in implementation.
Implementations
impl<M, E: ?Sized> BoxContext<M, E>
[src]
pub fn new(msg: M, error: Box<E>) -> Self
[src]
Direct construction of the context.
pub fn into_inner(self) -> Box<E>
[src]
Extracts the inner error, peeling off the outer layer.
Trait Implementations
impl<M: Debug, E: Debug + ?Sized> Debug for BoxContext<M, E>
[src]
impl<M: Display, E: ?Sized> Display for BoxContext<M, E>
[src]
impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Send + Sync>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Send>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<M: Debug + Display> Error for BoxContext<M, dyn Error + Sync>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<M: Debug + Display> Error for BoxContext<M, dyn Error>
[src]
Auto Trait Implementations
impl<M, E: ?Sized> RefUnwindSafe for BoxContext<M, E> where
E: RefUnwindSafe,
M: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
impl<M, E: ?Sized> Send for BoxContext<M, E> where
E: Send,
M: Send,
E: Send,
M: Send,
impl<M, E: ?Sized> Sync for BoxContext<M, E> where
E: Sync,
M: Sync,
E: Sync,
M: Sync,
impl<M, E: ?Sized> Unpin for BoxContext<M, E> where
M: Unpin,
M: Unpin,
impl<M, E: ?Sized> UnwindSafe for BoxContext<M, E> where
E: UnwindSafe,
M: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<E> ErrorExt for E where
E: Error,
[src]
E: Error,
fn context<M>(Self, M) -> Context<M, E> where
M: Display,
[src]
M: Display,
fn chain(&Self) -> Chain<'_>ⓘ where
E: 'static,
[src]
E: 'static,
fn find_source<T: Error + 'static>(&self) -> Option<&T> where
Self: 'static,
[src]
Self: 'static,
fn display<S: Display>(&self, separator: S) -> DisplayChain<'_, S> where
Self: 'static,
[src]
Self: 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,