pub struct ErrorContext<'a> {
pub caption: &'a str,
pub kind: &'a str,
pub level: ErrorLevel,
pub is_fatal: bool,
pub is_retryable: bool,
}
Expand description
Error context passed to registered hooks
Fields§
§caption: &'a str
The error caption
kind: &'a str
The error kind
level: ErrorLevel
The error level
is_fatal: bool
Whether the error is fatal
is_retryable: bool
Whether the error can be retried
Auto Trait Implementations§
impl<'a> Freeze for ErrorContext<'a>
impl<'a> RefUnwindSafe for ErrorContext<'a>
impl<'a> Send for ErrorContext<'a>
impl<'a> Sync for ErrorContext<'a>
impl<'a> Unpin for ErrorContext<'a>
impl<'a> UnwindSafe for ErrorContext<'a>
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