Trait LogError

Source
pub trait LogError {
    // Required method
    fn log_err(self) -> Self;
}
Expand description

Trait to log an error.

Required Methods§

Source

fn log_err(self) -> Self

Log the error.

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.

Implementations on Foreign Types§

Source§

impl<T> LogError for Option<T>

Source§

fn log_err(self) -> Self

Source§

impl<T, E: Display> LogError for Result<T, E>

Source§

fn log_err(self) -> Self

Implementors§