pub trait WithCodeResultExt<T> {
    // Required method
    fn with_code(self, code: Code) -> Result<T, Exit>;
}
Expand description

Extension for converting errors to Exit.

Required Methods§

source

fn with_code(self, code: Code) -> Result<T, Exit>

Convert an Error into an Exit

Implementations on Foreign Types§

source§

impl<T, E: Display + 'static> WithCodeResultExt<T> for Result<T, E>

source§

fn with_code(self, code: Code) -> Result<T, Exit>

Implementors§