#[non_exhaustive]pub struct ErrorContext { /* private fields */ }Expand description
Context attached without replacing the root failure kind.
Implementations§
Source§impl ErrorContext
impl ErrorContext
Sourcepub fn with_native_status(self, status: NativeStatus) -> Self
pub fn with_native_status(self, status: NativeStatus) -> Self
Attach a structured native status.
Sourcepub fn native_status(&self) -> Option<NativeStatus>
pub fn native_status(&self) -> Option<NativeStatus>
Native status, if any.
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
impl Copy for ErrorContext
Source§impl Debug for ErrorContext
impl Debug for ErrorContext
Source§impl Display for ErrorContext
impl Display for ErrorContext
impl Eq for ErrorContext
Source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
impl StructuralPartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnsafeUnpin for ErrorContext
impl UnwindSafe for ErrorContext
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