pub trait Error {
    // Required method
    fn custom<T: Display>(msg: T) -> Self;
}
Expand description

The base trait serialization error types must implement.

Required Methods§

source

fn custom<T: Display>(msg: T) -> Self

Returns an error derived from msg: impl Display.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Error for Infallible

source§

fn custom<T: Display>(msg: T) -> Self

source§

impl Error for String

source§

fn custom<T: Display>(msg: T) -> Self

Implementors§