pub trait LoggableError: Display {
// Required methods
fn is_recoverable(&self) -> bool;
fn is_security_related(&self) -> bool;
fn severity(&self) -> ErrorSeverity;
}Expand description
可记录的错误特征
Required Methods§
Sourcefn is_recoverable(&self) -> bool
fn is_recoverable(&self) -> bool
是否为可恢复错误
是否为安全相关错误
Sourcefn severity(&self) -> ErrorSeverity
fn severity(&self) -> ErrorSeverity
获取错误严重级别
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".