#[repr(i32)]pub enum TransactionErrorType {
Show 37 variants
AccountInUse = 0,
AccountLoadedTwice = 1,
AccountNotFound = 2,
ProgramAccountNotFound = 3,
InsufficientFundsForFee = 4,
InvalidAccountForFee = 5,
AlreadyProcessed = 6,
BlockhashNotFound = 7,
InstructionError = 8,
CallChainTooDeep = 9,
MissingSignatureForFee = 10,
InvalidAccountIndex = 11,
SignatureFailure = 12,
InvalidProgramForExecution = 13,
SanitizeFailure = 14,
ClusterMaintenance = 15,
AccountBorrowOutstandingTx = 16,
WouldExceedMaxBlockCostLimit = 17,
UnsupportedVersion = 18,
InvalidWritableAccount = 19,
WouldExceedMaxAccountCostLimit = 20,
WouldExceedAccountDataBlockLimit = 21,
TooManyAccountLocks = 22,
AddressLookupTableNotFound = 23,
InvalidAddressLookupTableOwner = 24,
InvalidAddressLookupTableData = 25,
InvalidAddressLookupTableIndex = 26,
InvalidRentPayingAccount = 27,
WouldExceedMaxVoteCostLimit = 28,
WouldExceedAccountDataTotalLimit = 29,
DuplicateInstruction = 30,
InsufficientFundsForRent = 31,
MaxLoadedAccountsDataSizeExceeded = 32,
InvalidLoadedAccountsDataSizeLimit = 33,
ResanitizationNeeded = 34,
ProgramExecutionTemporarilyRestricted = 35,
UnbalancedTransaction = 36,
}
Variants§
AccountInUse = 0
AccountLoadedTwice = 1
AccountNotFound = 2
ProgramAccountNotFound = 3
InsufficientFundsForFee = 4
InvalidAccountForFee = 5
AlreadyProcessed = 6
BlockhashNotFound = 7
InstructionError = 8
CallChainTooDeep = 9
MissingSignatureForFee = 10
InvalidAccountIndex = 11
SignatureFailure = 12
InvalidProgramForExecution = 13
SanitizeFailure = 14
ClusterMaintenance = 15
AccountBorrowOutstandingTx = 16
WouldExceedMaxBlockCostLimit = 17
UnsupportedVersion = 18
InvalidWritableAccount = 19
WouldExceedMaxAccountCostLimit = 20
WouldExceedAccountDataBlockLimit = 21
TooManyAccountLocks = 22
AddressLookupTableNotFound = 23
InvalidAddressLookupTableOwner = 24
InvalidAddressLookupTableData = 25
InvalidAddressLookupTableIndex = 26
InvalidRentPayingAccount = 27
WouldExceedMaxVoteCostLimit = 28
WouldExceedAccountDataTotalLimit = 29
DuplicateInstruction = 30
InsufficientFundsForRent = 31
MaxLoadedAccountsDataSizeExceeded = 32
InvalidLoadedAccountsDataSizeLimit = 33
ResanitizationNeeded = 34
ProgramExecutionTemporarilyRestricted = 35
UnbalancedTransaction = 36
Implementations§
source§impl TransactionErrorType
impl TransactionErrorType
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 TransactionErrorType
impl Clone for TransactionErrorType
source§fn clone(&self) -> TransactionErrorType
fn clone(&self) -> TransactionErrorType
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 TransactionErrorType
impl Debug for TransactionErrorType
source§impl Default for TransactionErrorType
impl Default for TransactionErrorType
source§fn default() -> TransactionErrorType
fn default() -> TransactionErrorType
Returns the “default value” for a type. Read more
source§impl From<TransactionErrorType> for i32
impl From<TransactionErrorType> for i32
source§fn from(value: TransactionErrorType) -> i32
fn from(value: TransactionErrorType) -> i32
Converts to this type from the input type.
source§impl Hash for TransactionErrorType
impl Hash for TransactionErrorType
source§impl Ord for TransactionErrorType
impl Ord for TransactionErrorType
source§fn cmp(&self, other: &TransactionErrorType) -> Ordering
fn cmp(&self, other: &TransactionErrorType) -> 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 TransactionErrorType
impl PartialEq for TransactionErrorType
source§fn eq(&self, other: &TransactionErrorType) -> bool
fn eq(&self, other: &TransactionErrorType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransactionErrorType
impl PartialOrd for TransactionErrorType
source§fn partial_cmp(&self, other: &TransactionErrorType) -> Option<Ordering>
fn partial_cmp(&self, other: &TransactionErrorType) -> 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 TransactionErrorType
impl Eq for TransactionErrorType
impl StructuralPartialEq for TransactionErrorType
Auto Trait Implementations§
impl Freeze for TransactionErrorType
impl RefUnwindSafe for TransactionErrorType
impl Send for TransactionErrorType
impl Sync for TransactionErrorType
impl Unpin for TransactionErrorType
impl UnwindSafe for TransactionErrorType
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