[−][src]Trait tracing_unwrap::ResultExt
Extension trait for Result types.
Required methods
fn unwrap_or_log(self) -> T where
E: Debug,
E: Debug,
Unwraps a result, yielding the content of an Ok
.
Panics
Panics if the value is an Err
, logging a message provided by the
Err
's value to a tracing::Subscriber
at an ERROR
level.
fn expect_or_log(self, msg: &str) -> T where
E: Debug,
E: Debug,
Unwraps a result, yielding the content of an Ok
.
Panics
Panics if the value is an Err
, logging the passed message and the
content of the Err
to a tracing::Subscriber
at an ERROR
level.
fn unwrap_err_or_log(self) -> E where
T: Debug,
T: Debug,
Unwraps a result, yielding the content of an Err
.
Panics
Panics if the value is an Ok
, logging a message provided by the
Ok
's value to a tracing::Subscriber
at an ERROR
level.
fn expect_err_or_log(self, msg: &str) -> E where
T: Debug,
T: Debug,
Implementations on Foreign Types
impl<T, E> ResultExt<T, E> for Result<T, E>
[src]
fn unwrap_or_log(self) -> T where
E: Debug,
[src]
E: Debug,
fn expect_or_log(self, msg: &str) -> T where
E: Debug,
[src]
E: Debug,
fn unwrap_err_or_log(self) -> E where
T: Debug,
[src]
T: Debug,
fn expect_err_or_log(self, msg: &str) -> E where
T: Debug,
[src]
T: Debug,