Trait ErrorExtWrapFrom

Source
pub trait ErrorExtWrapFrom<E>: Sized {
    // Required method
    fn wrap_from(_code: u32, _error: E) -> Self;
}

Required Methods§

Source

fn wrap_from(_code: u32, _error: E) -> Self

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<E: Error> ErrorExtWrapFrom<E> for Error

Source§

fn wrap_from(_code: u32, _error: E) -> Self

Implementors§