Trait solana_sdk::decode_error::DecodeError
source · 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