pub enum MplVaultError {
Show 24 variants
VaultAlreadyExists,
InvalidDerivation,
InvalidOwner,
AccountIsEmpty,
InvalidAccountKey,
InvalidAuthority,
InvalidCreator,
NumericalOverflow,
TokenNotInVault,
MissingTokenRecord,
MissingTokenAuthRulesProgram,
NotEmpty,
InvalidValidator,
MissingAuthority,
MissingRedeemer,
MissingPass,
InvalidPass,
RemoveRedeemerFailed,
RedeemerNotSet,
EmptyVault,
InvalidAmount,
MissingVaultTokenAccount,
MissingSplAtaProgram,
MissingMasterEdition,
}Variants§
VaultAlreadyExists
0 (0x0) - vault account aleady exists
InvalidDerivation
1 (0x1) - invalid derivation for Vault account
InvalidOwner
2 (0x2) - invalid account owner
AccountIsEmpty
3 (0x3) - account has no data
InvalidAccountKey
4 (0x4) - invalid account key
InvalidAuthority
5 (0x5) - invalid vault authority
InvalidCreator
6 (0x6) - invalid vault creator
NumericalOverflow
7 (0x7) - numericalOverflowError
TokenNotInVault
8 (0x8) - token not found in vault
MissingTokenRecord
9 (0x9) - missing token record account
MissingTokenAuthRulesProgram
10 (0xA) - missing token auth rules program
NotEmpty
11 (0xB) - vault is not empty
InvalidValidator
12 (0xC) - invalid validator account
MissingAuthority
13 (0xD) - missing authority account
MissingRedeemer
14 (0xE) - missing redeemer account
MissingPass
15 (0xF) - missing pass account
InvalidPass
16 (0x10) - invalid pass account
RemoveRedeemerFailed
17 (0x11) - failed to remove redeemer
RedeemerNotSet
18 (0x12) - redeemer not set
EmptyVault
19 (0x13) - vault is empty
InvalidAmount
20 (0x14) - amount is greater than token balance
MissingVaultTokenAccount
21 (0x15) - missing vault token account
MissingSplAtaProgram
22 (0x16) - missing spl ata program
MissingMasterEdition
23 (0x17) - missing master edition
Trait Implementations§
Source§impl Clone for MplVaultError
impl Clone for MplVaultError
Source§fn clone(&self) -> MplVaultError
fn clone(&self) -> MplVaultError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MplVaultError
impl Debug for MplVaultError
Source§impl Display for MplVaultError
impl Display for MplVaultError
Source§impl Error for MplVaultError
impl Error for MplVaultError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl FromPrimitive for MplVaultError
impl FromPrimitive for MplVaultError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl PartialEq for MplVaultError
impl PartialEq for MplVaultError
Source§impl PrintProgramError for MplVaultError
impl PrintProgramError for MplVaultError
impl Eq for MplVaultError
impl StructuralPartialEq for MplVaultError
Auto Trait Implementations§
impl Freeze for MplVaultError
impl RefUnwindSafe for MplVaultError
impl Send for MplVaultError
impl Sync for MplVaultError
impl Unpin for MplVaultError
impl UnwindSafe for MplVaultError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more