Skip to main content

DebugMapErr

Trait DebugMapErr 

Source
trait DebugMapErr<T, E: Debug> {
    // Required method
    fn debug_map_err<E2>(self, target: E2) -> Result<T, E2>;
}

Required Methods§

Source

fn debug_map_err<E2>(self, target: E2) -> Result<T, E2>

Logs the error using tracing::debug and maps it to a new error type

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, E: Debug> DebugMapErr<T, E> for Result<T, E>

Source§

fn debug_map_err<E2>(self, target: E2) -> Result<T, E2>

Implementors§