Skip to main content

ErrorCode

Trait ErrorCode 

Source
pub trait ErrorCode {
    // Required method
    fn error_code(&self) -> i32;
}
Expand description

Trait for types that can be converted to integer error code.

Required Methods§

Source

fn error_code(&self) -> i32

Return the error code corresponding to this instance.

Implementors§