pub trait ErrorAsErrorCodeExt: ErrorAsErrorCode {
// Required methods
fn is_error_code(&self, expected_code: ErrorCode) -> 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: ErrorCode) -> bool
fn is_error_code(&self, expected_code: ErrorCode) -> bool
Check of the error code matches the given value.