#[non_exhaustive]pub enum HookError {
NotLoaded(Vec<Address>),
NoList,
MalformedMint,
Unresolvable(Unresolvable),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotLoaded(Vec<Address>)
The mint infos do not hold these accounts. Fetch them. Insert them into
a copy of each mint info. Build again until the build does not return
NotLoaded.
NoList
The validation account is missing, or the hook program does not own it. Token-2022 still calls the hook, and the transfer fails.
MalformedMint
A mint in a HookState is not a mint that a token program owns, or
its extensions do not decode. HookState::missing gives it.
Unresolvable(Unresolvable)
Trait Implementations§
impl Eq for HookError
Source§impl Error for HookError
impl Error for HookError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<HookError> for Unroutable
impl From<HookError> for Unroutable
Source§impl From<HookError> for BuildError
impl From<HookError> for BuildError
Source§impl From<Unresolvable> for HookError
impl From<Unresolvable> for HookError
Source§fn from(reason: Unresolvable) -> Self
fn from(reason: Unresolvable) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for HookError
Auto Trait Implementations§
impl Freeze for HookError
impl RefUnwindSafe for HookError
impl Send for HookError
impl Sync for HookError
impl Unpin for HookError
impl UnsafeUnpin for HookError
impl UnwindSafe for HookError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more