Trait Error

Source
pub trait Error: Display {
    // Required method
    fn custom<D: Display>(msg: D, codec: Codec) -> Self;
}
Expand description

A generic error that occurred while trying to encode ASN.1.

Required Methods§

Source

fn custom<D: Display>(msg: D, codec: Codec) -> Self

Creates a new general error using msg and current codec when encoding ASN.1.

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 Error for Infallible

Source§

fn custom<D: Display>(msg: D, codec: Codec) -> Self

Implementors§