pub trait AsErrorCodeExt<ErrorCode>: AsErrorCode<ErrorCode>{
// Required methods
fn as_error_code_value(&self) -> Option<u32>;
fn is_error_code(&self, expected_code: u32) -> bool;
fn is_closed(&self) -> bool;
}
Expand description
Extensions to the .
Required Methods§
Sourcefn as_error_code_value(&self) -> Option<u32>
fn as_error_code_value(&self) -> Option<u32>
Get the error code value.
Sourcefn is_error_code(&self, expected_code: u32) -> bool
fn is_error_code(&self, expected_code: u32) -> bool
Check of the error code matches the given value.