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;
}Required Methods§
fn custom<T>(msg: T) -> Selfwhere
T: Display,
fn context<C>(self, context: C) -> Selfwhere
C: Display,
Object Safety§
This trait is not object safe.