error_chain

Trait ExitCode

Source
pub trait ExitCode {
    // Required method
    fn code(self) -> i32;
}
Expand description

Represents a value that can be used as the exit status of the process. See quick_main!.

Required Methods§

Source

fn code(self) -> i32

Returns the value to use as the exit status.

Implementations on Foreign Types§

Source§

impl ExitCode for i32

Source§

fn code(self) -> i32

Source§

impl ExitCode for ()

Source§

fn code(self) -> i32

Implementors§