Trait AsErrorCode

Source
pub trait AsErrorCode<ErrorCode>: Send
where ErrorCode: TryInto<u32> + Send + Sync,
{ // Required method fn as_error_code(&self) -> Option<ErrorCode>; }
Expand description

A way to represent a stream operation error as an error code.

Required Methods§

Source

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

Represent the error as an error code.

Implementors§