Trait tracing_unwrap::ResultExt
source · pub trait ResultExt<T, E> {
fn unwrap_or_log(self) -> T
where
E: Debug;
fn expect_or_log(self, msg: &str) -> T
where
E: Debug;
fn unwrap_err_or_log(self) -> E
where
T: Debug;
fn expect_err_or_log(self, msg: &str) -> E
where
T: Debug;
}
Expand description
Extension trait for Result types.