pub struct AnnotatedError {
pub error: Error,
pub severity: ErrorSeverity,
pub kernel: Option<String>,
}Expand description
An error annotated with severity and an optional kernel name.
Fields§
§error: ErrorThe underlying error.
severity: ErrorSeveritySeverity classification.
kernel: Option<String>Optional kernel that triggered the error.
Implementations§
Trait Implementations§
Source§impl Debug for AnnotatedError
impl Debug for AnnotatedError
Auto Trait Implementations§
impl Freeze for AnnotatedError
impl RefUnwindSafe for AnnotatedError
impl Send for AnnotatedError
impl Sync for AnnotatedError
impl Unpin for AnnotatedError
impl UnsafeUnpin for AnnotatedError
impl UnwindSafe for AnnotatedError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more