#[repr(i32)]pub enum InstructionErrorType {
Show 54 variants
GenericError = 0,
InvalidArgument = 1,
InvalidInstructionData = 2,
InvalidAccountData = 3,
AccountDataTooSmall = 4,
InsufficientFunds = 5,
IncorrectProgramId = 6,
MissingRequiredSignature = 7,
AccountAlreadyInitialized = 8,
UninitializedAccount = 9,
UnbalancedInstruction = 10,
ModifiedProgramId = 11,
ExternalAccountLamportSpend = 12,
ExternalAccountDataModified = 13,
ReadonlyLamportChange = 14,
ReadonlyDataModified = 15,
DuplicateAccountIndex = 16,
ExecutableModified = 17,
RentEpochModified = 18,
NotEnoughAccountKeys = 19,
AccountDataSizeChanged = 20,
AccountNotExecutable = 21,
AccountBorrowFailed = 22,
AccountBorrowOutstanding = 23,
DuplicateAccountOutOfSync = 24,
Custom = 25,
InvalidError = 26,
ExecutableDataModified = 27,
ExecutableLamportChange = 28,
ExecutableAccountNotRentExempt = 29,
UnsupportedProgramId = 30,
CallDepth = 31,
MissingAccount = 32,
ReentrancyNotAllowed = 33,
MaxSeedLengthExceeded = 34,
InvalidSeeds = 35,
InvalidRealloc = 36,
ComputationalBudgetExceeded = 37,
PrivilegeEscalation = 38,
ProgramEnvironmentSetupFailure = 39,
ProgramFailedToComplete = 40,
ProgramFailedToCompile = 41,
Immutable = 42,
IncorrectAuthority = 43,
BorshIoError = 44,
AccountNotRentExempt = 45,
InvalidAccountOwner = 46,
ArithmeticOverflow = 47,
UnsupportedSysvar = 48,
IllegalOwner = 49,
MaxAccountsDataAllocationsExceeded = 50,
MaxAccountsExceeded = 51,
MaxInstructionTraceLengthExceeded = 52,
BuiltinProgramsMustConsumeComputeUnits = 53,
}
Variants§
GenericError = 0
InvalidArgument = 1
InvalidInstructionData = 2
InvalidAccountData = 3
AccountDataTooSmall = 4
InsufficientFunds = 5
IncorrectProgramId = 6
MissingRequiredSignature = 7
AccountAlreadyInitialized = 8
UninitializedAccount = 9
UnbalancedInstruction = 10
ModifiedProgramId = 11
ExternalAccountLamportSpend = 12
ExternalAccountDataModified = 13
ReadonlyLamportChange = 14
ReadonlyDataModified = 15
DuplicateAccountIndex = 16
ExecutableModified = 17
RentEpochModified = 18
NotEnoughAccountKeys = 19
AccountDataSizeChanged = 20
AccountNotExecutable = 21
AccountBorrowFailed = 22
AccountBorrowOutstanding = 23
DuplicateAccountOutOfSync = 24
Custom = 25
InvalidError = 26
ExecutableDataModified = 27
ExecutableLamportChange = 28
ExecutableAccountNotRentExempt = 29
UnsupportedProgramId = 30
CallDepth = 31
MissingAccount = 32
ReentrancyNotAllowed = 33
MaxSeedLengthExceeded = 34
InvalidSeeds = 35
InvalidRealloc = 36
ComputationalBudgetExceeded = 37
PrivilegeEscalation = 38
ProgramEnvironmentSetupFailure = 39
ProgramFailedToComplete = 40
ProgramFailedToCompile = 41
Immutable = 42
IncorrectAuthority = 43
BorshIoError = 44
AccountNotRentExempt = 45
InvalidAccountOwner = 46
ArithmeticOverflow = 47
UnsupportedSysvar = 48
IllegalOwner = 49
MaxAccountsDataAllocationsExceeded = 50
MaxAccountsExceeded = 51
MaxInstructionTraceLengthExceeded = 52
BuiltinProgramsMustConsumeComputeUnits = 53
Implementations§
source§impl InstructionErrorType
impl InstructionErrorType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for InstructionErrorType
impl Clone for InstructionErrorType
source§fn clone(&self) -> InstructionErrorType
fn clone(&self) -> InstructionErrorType
Returns a copy 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 InstructionErrorType
impl Debug for InstructionErrorType
source§impl Default for InstructionErrorType
impl Default for InstructionErrorType
source§fn default() -> InstructionErrorType
fn default() -> InstructionErrorType
Returns the “default value” for a type. Read more
source§impl From<InstructionErrorType> for i32
impl From<InstructionErrorType> for i32
source§fn from(value: InstructionErrorType) -> i32
fn from(value: InstructionErrorType) -> i32
Converts to this type from the input type.
source§impl Hash for InstructionErrorType
impl Hash for InstructionErrorType
source§impl Ord for InstructionErrorType
impl Ord for InstructionErrorType
source§fn cmp(&self, other: &InstructionErrorType) -> Ordering
fn cmp(&self, other: &InstructionErrorType) -> 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 InstructionErrorType
impl PartialEq for InstructionErrorType
source§fn eq(&self, other: &InstructionErrorType) -> bool
fn eq(&self, other: &InstructionErrorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InstructionErrorType
impl PartialOrd for InstructionErrorType
source§fn partial_cmp(&self, other: &InstructionErrorType) -> Option<Ordering>
fn partial_cmp(&self, other: &InstructionErrorType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for InstructionErrorType
impl Eq for InstructionErrorType
impl StructuralPartialEq for InstructionErrorType
Auto Trait Implementations§
impl Freeze for InstructionErrorType
impl RefUnwindSafe for InstructionErrorType
impl Send for InstructionErrorType
impl Sync for InstructionErrorType
impl Unpin for InstructionErrorType
impl UnwindSafe for InstructionErrorType
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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