Trait kwiwk_experimental::extensions::ResultExtension [−][src]
pub trait ResultExtension<T, E> { fn warn_on_err(self); fn fatal_on_err(self) -> T; }
Required Methods
fn warn_on_err(self)
fn fatal_on_err(self) -> T
Implementations on Foreign Types
impl<T, E> ResultExtension<T, E> for Result<T, E> where
T: Debug,
E: Debug + Display,
[src]
impl<T, E> ResultExtension<T, E> for Result<T, E> where
T: Debug,
E: Debug + Display,
fn warn_on_err(self)
[src]
fn warn_on_err(self)
Log a warning on error.
fn fatal_on_err(self) -> T
[src]
fn fatal_on_err(self) -> T
Log an error and exit with status code (1).