[][src]Trait problem::logged::OkOrLog

pub trait OkOrLog<O> {
    fn ok_or_log_warn(self) -> Option<O>;
fn ok_or_log_error(self) -> Option<O>; }

Extension of Result that allows program to log on Err with Display message for application errors that are not critical

Required methods

fn ok_or_log_warn(self) -> Option<O>

fn ok_or_log_error(self) -> Option<O>

Loading content...

Implementations on Foreign Types

impl<O, E> OkOrLog<O> for Result<O, E> where
    E: Into<Problem>, 
[src]

Loading content...

Implementors

Loading content...