Trait ErrorChain

Source
pub trait ErrorChain {
    // Required method
    fn propagate(self, desc: &'static str) -> Self;
}
Expand description

A trait to chain errors

Required Methods§

Source

fn propagate(self, desc: &'static str) -> Self

Chains another error to self

Info: does nothing if not build with std

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> ErrorChain for Result<T, Asn1DerError>

Source§

fn propagate(self, _desc: &'static str) -> Self

Implementors§