Trait bigerror::LogError

source ·
pub trait LogError<T, E>
where E: Debug,
{ // Required methods fn log_err(self); fn log_attached_err<A>(self, attachment: A) where A: Debug + Send + Sync + 'static; fn and_log_err(self) -> Result<T, E>; fn and_log(self, level: Level) -> Result<T, E>; fn and_attached_err<A>(self, attachment: A) -> Result<T, E> where A: Debug + Send + Sync + 'static; }

Required Methods§

source

fn log_err(self)

source

fn log_attached_err<A>(self, attachment: A)
where A: Debug + Send + Sync + 'static,

source

fn and_log_err(self) -> Result<T, E>

source

fn and_log(self, level: Level) -> Result<T, E>

source

fn and_attached_err<A>(self, attachment: A) -> Result<T, E>
where A: Debug + Send + Sync + 'static,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

fn log_err(self)

source§

fn log_attached_err<A>(self, attachment: A)
where A: Debug + Send + Sync + 'static,

source§

fn and_log(self, level: Level) -> Result<T, E>

source§

fn and_log_err(self) -> Result<T, E>

source§

fn and_attached_err<A>(self, attachment: A) -> Result<T, E>
where A: Debug + Send + Sync + 'static,

Implementors§