pub enum InstructionError {
Show 52 variants
GenericError,
InvalidArgument,
InvalidInstructionData,
InvalidAccountData,
AccountDataTooSmall,
InsufficientFunds,
IncorrectProgramId,
MissingRequiredSignature,
AccountAlreadyInitialized,
UninitializedAccount,
UnbalancedInstruction,
ModifiedProgramId,
ExternalAccountLamportSpend,
ExternalAccountDataModified,
ReadonlyLamportChange,
ReadonlyDataModified,
DuplicateAccountIndex,
ExecutableModified,
RentEpochModified,
NotEnoughAccountKeys,
AccountDataSizeChanged,
AccountNotExecutable,
AccountBorrowFailed,
AccountBorrowOutstanding,
DuplicateAccountOutOfSync,
Custom(u32),
InvalidError,
ExecutableDataModified,
ExecutableLamportChange,
ExecutableAccountNotRentExempt,
UnsupportedProgramId,
CallDepth,
MissingAccount,
ReentrancyNotAllowed,
MaxSeedLengthExceeded,
InvalidSeeds,
InvalidRealloc,
ComputationalBudgetExceeded,
PrivilegeEscalation,
ProgramEnvironmentSetupFailure,
ProgramFailedToComplete,
ProgramFailedToCompile,
Immutable,
IncorrectAuthority,
BorshIoError(String),
AccountNotRentExempt,
InvalidAccountOwner,
ArithmeticOverflow,
UnsupportedSysvar,
IllegalOwner,
MaxAccountsDataSizeExceeded,
ActiveVoteAccountClose,
}Variants§
GenericError
InvalidArgument
InvalidInstructionData
InvalidAccountData
AccountDataTooSmall
InsufficientFunds
IncorrectProgramId
MissingRequiredSignature
AccountAlreadyInitialized
UninitializedAccount
UnbalancedInstruction
ModifiedProgramId
ExternalAccountLamportSpend
ExternalAccountDataModified
ReadonlyLamportChange
ReadonlyDataModified
DuplicateAccountIndex
ExecutableModified
RentEpochModified
NotEnoughAccountKeys
AccountDataSizeChanged
AccountNotExecutable
AccountBorrowFailed
AccountBorrowOutstanding
DuplicateAccountOutOfSync
Custom(u32)
InvalidError
ExecutableDataModified
ExecutableLamportChange
ExecutableAccountNotRentExempt
UnsupportedProgramId
CallDepth
MissingAccount
ReentrancyNotAllowed
MaxSeedLengthExceeded
InvalidSeeds
InvalidRealloc
ComputationalBudgetExceeded
PrivilegeEscalation
ProgramEnvironmentSetupFailure
ProgramFailedToComplete
ProgramFailedToCompile
Immutable
IncorrectAuthority
BorshIoError(String)
AccountNotRentExempt
InvalidAccountOwner
ArithmeticOverflow
UnsupportedSysvar
IllegalOwner
MaxAccountsDataSizeExceeded
ActiveVoteAccountClose
Trait Implementations§
Source§impl BorshDeserialize for InstructionError
impl BorshDeserialize for InstructionError
Source§impl BorshSerialize for InstructionError
impl BorshSerialize for InstructionError
Source§impl Clone for InstructionError
impl Clone for InstructionError
Source§fn clone(&self) -> InstructionError
fn clone(&self) -> InstructionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstructionError
impl Debug for InstructionError
Source§impl<'de> Deserialize<'de> for InstructionError
impl<'de> Deserialize<'de> for InstructionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for InstructionError
impl Ord for InstructionError
Source§fn cmp(&self, other: &InstructionError) -> Ordering
fn cmp(&self, other: &InstructionError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for InstructionError
impl PartialEq for InstructionError
Source§impl PartialOrd for InstructionError
impl PartialOrd for InstructionError
Source§impl Serialize for InstructionError
impl Serialize for InstructionError
impl Eq for InstructionError
impl StructuralPartialEq for InstructionError
Auto Trait Implementations§
impl Freeze for InstructionError
impl RefUnwindSafe for InstructionError
impl Send for InstructionError
impl Sync for InstructionError
impl Unpin for InstructionError
impl UnwindSafe for InstructionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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