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.