pub trait ProtoErrorSet<T> {
// Required methods
fn already_exists_error(context: Ctx<T>) -> Error<Ctx<T>>;
fn parsing_error(context: Ctx<T>, error: &str) -> Error<Ctx<T>>;
fn generic_error(context: Ctx<T>) -> Error<Ctx<T>>;
fn unauthorized_error(context: Ctx<T>) -> Error<Ctx<T>>;
fn not_found_error(context: Ctx<T>) -> Error<Ctx<T>>;
}Required Methods§
fn already_exists_error(context: Ctx<T>) -> Error<Ctx<T>>
fn parsing_error(context: Ctx<T>, error: &str) -> Error<Ctx<T>>
fn generic_error(context: Ctx<T>) -> Error<Ctx<T>>
fn not_found_error(context: Ctx<T>) -> Error<Ctx<T>>
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.