Trait solana_sdk::decode_error::DecodeError[][src]

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

    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

Provided methods

Implementors