pub trait ResultExt<E> {
    type Ok;
    // Required methods
    fn log_err(self) -> Option<Self::Ok>;
    fn debug_assert_ok(self, reason: &str) -> Self;
    fn warn_on_err(self) -> Option<Self::Ok>;
    fn log_with_level(self, level: Level) -> Option<Self::Ok>;
    fn anyhow(self) -> Result<Self::Ok>
       where E: Into<Error>;
}Required Associated Types§
Required Methods§
fn log_err(self) -> Option<Self::Ok>
Sourcefn debug_assert_ok(self, reason: &str) -> Self
 
fn debug_assert_ok(self, reason: &str) -> Self
Assert that this result should never be an error in development or tests.
fn warn_on_err(self) -> Option<Self::Ok>
fn log_with_level(self, level: Level) -> Option<Self::Ok>
fn anyhow(self) -> Result<Self::Ok>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.