pub trait AsErrorCode: Send {
type ErrorCode: Send + Sync;
// Required method
fn as_error_code(&self) -> Option<Self::ErrorCode>;
}
Expand description
A way to represent a stream operation error as an error code.
Required Associated Types§
Required Methods§
Sourcefn as_error_code(&self) -> Option<Self::ErrorCode>
fn as_error_code(&self) -> Option<Self::ErrorCode>
Represent the error as an error code.