pub trait Severity {
// Required method
fn get_severity(&self) -> SeverityLevel;
// Provided methods
fn is_recoverable_error(&self) -> bool { ... }
fn is_unrecoverable_error(&self) -> bool { ... }
fn is_warning(&self) -> bool { ... }
}Required Methods§
fn get_severity(&self) -> SeverityLevel
Provided Methods§
Sourcefn is_recoverable_error(&self) -> bool
fn is_recoverable_error(&self) -> bool
Returns true if the severity level is RecoverableError.
Sourcefn is_unrecoverable_error(&self) -> bool
fn is_unrecoverable_error(&self) -> bool
Returns true if the severity level is UnrecoverableError.
Sourcefn is_warning(&self) -> bool
fn is_warning(&self) -> bool
Returns true if the severity level is Warning.