plane_core::logging

Trait LogError

Source
pub trait LogError<E: Debug> {
    // Required method
    fn log_error(&self, message: &str);
}
Expand description

Helper trait for consuming and logging errors without further processing. Mostly useful for when a function returns a Result<()> and we want to know if it failed but still continue execution.

Required Methods§

Source

fn log_error(&self, message: &str)

Implementations on Foreign Types§

Source§

impl<T> LogError<()> for Option<T>

Source§

fn log_error(&self, message: &str)

Source§

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

Source§

fn log_error(&self, message: &str)

Implementors§