Skip to main content

ExitCoder

Trait ExitCoder 

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

Error trait for values that carry a process exit code.

Required Methods§

Source

fn exit_code(&self) -> i32

Returns the process-style exit code for the error.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§