[−][src]Struct abscissa_core::error::context::Context
Error context
Methods
impl<Kind> Context<Kind> where
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
[src]
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
pub fn new(kind: Kind, source: Option<BoxError>) -> Self
[src]
Create a new error context
pub fn kind(&self) -> &Kind
[src]
Get the kind of error
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
Get the backtrace associated with this error (if available)
pub fn into_backtrace(self) -> Option<Backtrace>
[src]
Extract the backtrace from the context, allowing it to be resolved.
Trait Implementations
impl<Kind: Debug> Debug for Context<Kind> where
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
[src]
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
impl<Kind> Display for Context<Kind> where
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
[src]
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
impl<Kind> Error for Context<Kind> where
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
[src]
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl From<Context<FrameworkErrorKind>> for FrameworkError
[src]
fn from(context: Context<FrameworkErrorKind>) -> Self
[src]
impl<Kind> From<Kind> for Context<Kind> where
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
[src]
Kind: Clone + Debug + Display + Eq + PartialEq + Into<BoxError>,
Auto Trait Implementations
impl<Kind> !RefUnwindSafe for Context<Kind>
impl<Kind> Send for Context<Kind> where
Kind: Send,
Kind: Send,
impl<Kind> Sync for Context<Kind> where
Kind: Sync,
Kind: Sync,
impl<Kind> Unpin for Context<Kind> where
Kind: Unpin,
Kind: Unpin,
impl<Kind> !UnwindSafe for Context<Kind>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsAny for T where
T: Any,
[src]
T: Any,
fn as_any(&Self) -> &(dyn Any + 'static)
[src]
fn as_mut_any(&mut Self) -> &mut (dyn Any + 'static)
[src]
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<T> Erased for T
impl<T> From<!> for T
[src]
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>,