ProtoErrorSet

Trait ProtoErrorSet 

Source
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§

Source

fn already_exists_error(context: Ctx<T>) -> Error<Ctx<T>>

Source

fn parsing_error(context: Ctx<T>, error: &str) -> Error<Ctx<T>>

Source

fn generic_error(context: Ctx<T>) -> Error<Ctx<T>>

Source

fn unauthorized_error(context: Ctx<T>) -> Error<Ctx<T>>

Source

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.

Implementations on Foreign Types§

Source§

impl<T> ProtoErrorSet<T> for ThrusterError<ProtoContext<T>>

Source§

fn already_exists_error(context: Ctx<T>) -> Error<Ctx<T>>

Source§

fn parsing_error(context: Ctx<T>, error: &str) -> Error<Ctx<T>>

Source§

fn generic_error(context: Ctx<T>) -> Error<Ctx<T>>

Source§

fn unauthorized_error(context: Ctx<T>) -> Error<Ctx<T>>

Source§

fn not_found_error(context: Ctx<T>) -> Error<Ctx<T>>

Implementors§