Trait ErrorLogger

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

Trait to log a result.

Required Methods§

Source

fn log_error(self) -> Self

Log the result

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> ErrorLogger for Option<T>

Source§

fn log_error(self) -> Self

Source§

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

Source§

fn log_error(self) -> Self

Implementors§