eva_common::registry

Trait ErrLogger

Source
pub trait ErrLogger {
    // Required methods
    fn log_ef(self);
    fn log_efd(self);
    fn log_err(self) -> Self;
    fn log_ed(self) -> Self;
    fn log_ef_with(self, msg: impl Display);
    fn log_efd_with(self, msg: impl Display);
    fn log_err_with(self, msg: impl Display) -> Self;
    fn log_ed_with(self, msg: impl Display) -> Self;
}

Required Methods§

Source

fn log_ef(self)

log error and forget the result

Source

fn log_efd(self)

log error as debug and forget the result

Source

fn log_err(self) -> Self

log error and keep the result

Source

fn log_ed(self) -> Self

log error as debug and keep the result

Source

fn log_ef_with(self, msg: impl Display)

log error and forget the result with message

Source

fn log_efd_with(self, msg: impl Display)

log error as debug and forget the result with message

Source

fn log_err_with(self, msg: impl Display) -> Self

log error and keep the result with message

Source

fn log_ed_with(self, msg: impl Display) -> Self

log error as debug and keep the result with message

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<R, E> ErrLogger for Result<R, E>
where E: Display,

Source§

fn log_ef(self)

Source§

fn log_efd(self)

Source§

fn log_err(self) -> Self

Source§

fn log_ed(self) -> Self

Source§

fn log_ef_with(self, msg: impl Display)

Source§

fn log_efd_with(self, msg: impl Display)

Source§

fn log_err_with(self, msg: impl Display) -> Self

Source§

fn log_ed_with(self, msg: impl Display) -> Self

Implementors§