pub trait Error: StdError + Sized {
// Required methods
fn custom<T>(msg: T) -> Self
where T: Display;
fn context<C>(self, context: C) -> Self
where C: Display;
}Expand description
De/serialization error
Required Methods§
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.