pub trait ErrorAsErrorCodeExt: ErrorAsErrorCode {
// Required methods
fn is_error_code(&self, expected_code: u32) -> bool;
fn is_closed(&self) -> bool;
}Expand description
Extensions to the stream::ErrorAsErrorCode providing some convenience methods.
Required Methods§
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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".