pub trait DecodeError<E> {
    // Required method
    fn type_of() -> &'static str;

    // Provided method
    fn decode_custom_error_to_enum(custom: u32) -> Option<E>
       where E: FromPrimitive { ... }
}
Expand description

Allows custom errors to be decoded back to their original enum

Required Methods§

source

fn type_of() -> &'static str

Provided Methods§

Implementors§