Trait kwiwk_experimental::extensions::ResultExtension[][src]

pub trait ResultExtension<T, E> {
    fn warn_on_err(self);
fn fatal_on_err(self) -> T; }

Required Methods

Implementations on Foreign Types

impl<T, E> ResultExtension<T, E> for Result<T, E> where
    T: Debug,
    E: Debug + Display
[src]

Log a warning on error.

Log an error and exit with status code (1).

Implementors