AsErrorCode

Trait AsErrorCode 

Source
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§

Source

type ErrorCode: Send + Sync

An error code type.

Required Methods§

Source

fn as_error_code(&self) -> Option<Self::ErrorCode>

Represent the error as an error code.

Implementors§