Skip to main content

SysErrorCode

Trait SysErrorCode 

Source
pub trait SysErrorCode {
    // Required method
    fn sys_code(&self) -> u16;

    // Provided method
    fn sys_tag(&self) -> &'static str { ... }
}

Required Methods§

Source

fn sys_code(&self) -> u16

Provided Methods§

Source

fn sys_tag(&self) -> &'static str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SysErrorCode for OrionSecReason

Source§

fn sys_code(&self) -> u16

Source§

impl SysErrorCode for SinkReason

Source§

fn sys_code(&self) -> u16

Source§

fn sys_tag(&self) -> &'static str

Source§

impl SysErrorCode for SourceReason

Source§

fn sys_code(&self) -> u16

Source§

fn sys_tag(&self) -> &'static str

Implementors§