Skip to main content

ErrorWithCode

Trait ErrorWithCode 

Source
pub trait ErrorWithCode {
    // Required method
    fn code(&self) -> u32;
}

Required Methods§

Source

fn code(&self) -> u32

Returns the error code

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§