pub trait SecurityErrorExt {
// Required methods
fn is_device_error(&self) -> bool;
fn is_permission_error(&self) -> bool;
fn is_compliance_error(&self) -> bool;
fn is_authentication_error(&self) -> bool;
fn security_operation(&self) -> Option<&str>;
fn affected_resource_id(&self) -> Option<&str>;
fn to_security_event(&self) -> SecurityEvent;
}Expand description
安全错误扩展特征
Required Methods§
Sourcefn is_device_error(&self) -> bool
fn is_device_error(&self) -> bool
检查是否为设备相关错误
Sourcefn is_permission_error(&self) -> bool
fn is_permission_error(&self) -> bool
检查是否为权限相关错误
Sourcefn is_compliance_error(&self) -> bool
fn is_compliance_error(&self) -> bool
检查是否为合规相关错误
Sourcefn is_authentication_error(&self) -> bool
fn is_authentication_error(&self) -> bool
检查是否为认证相关错误
Sourcefn security_operation(&self) -> Option<&str>
fn security_operation(&self) -> Option<&str>
获取安全操作类型
Sourcefn affected_resource_id(&self) -> Option<&str>
fn affected_resource_id(&self) -> Option<&str>
获取受影响的资源ID
Sourcefn to_security_event(&self) -> SecurityEvent
fn to_security_event(&self) -> SecurityEvent
生成安全事件报告
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".