pub enum MessageError {
Show 19 variants
BufferTooSmall,
InvalidHeapSize,
InstructionAccountsTooLarge,
InstructionDataTooLarge,
InvalidConfigMask,
InvalidInstructionAccountIndex,
InvalidProgramIdIndex,
InvalidVersion,
MissingLifetimeSpecifier,
NotEnoughAddressesForSignatures,
TooManyAddresses,
TooManyInstructions,
TooManySignatures,
TrailingData,
TransactionTooLarge,
ZeroSigners,
DuplicateAddresses,
InvalidConfigValue,
NotEnoughAccountKeys,
}Expand description
Errors that can occur when working with V1 messages.
Variants§
BufferTooSmall
Input buffer is too small during deserialization.
InvalidHeapSize
Heap size is not a multiple of 1024.
InstructionAccountsTooLarge
Instruction has too many accounts (> 255).
InstructionDataTooLarge
Instruction data is too large (> 65535 bytes).
InvalidConfigMask
Invalid TransactionConfigMask.
InvalidInstructionAccountIndex
Instruction account index is out of bounds.
InvalidProgramIdIndex
Program ID index is invalid (out of bounds or fee payer).
InvalidVersion
Invalid or missing version byte (expected 0x81).
MissingLifetimeSpecifier
Lifetime specifier (blockhash) is required.
NotEnoughAddressesForSignatures
Not enough addresses for the number of required signatures.
TooManyAddresses
Too many addresses (> 64).
TooManyInstructions
Too many instructions (> 64).
TooManySignatures
Too many signatures (> 12).
TrailingData
Unexpected trailing data after message.
TransactionTooLarge
Transaction exceeds maximum size (4096 bytes).
ZeroSigners
Must have at least one signer (fee payer).
DuplicateAddresses
Duplicate addresses found in the message.
InvalidConfigValue
Invalid configuration value.
NotEnoughAccountKeys
Not enough account keys provided.
Trait Implementations§
Source§impl Clone for MessageError
Available on non-target_os=solana only.
impl Clone for MessageError
target_os=solana only.Source§fn clone(&self) -> MessageError
fn clone(&self) -> MessageError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageError
Available on non-target_os=solana only.
impl Debug for MessageError
target_os=solana only.Source§impl Display for MessageError
Available on non-target_os=solana only.
impl Display for MessageError
target_os=solana only.Source§impl Error for MessageError
Available on non-target_os=solana only.
impl Error for MessageError
target_os=solana only.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 From<MessageError> for SanitizeError
Available on non-target_os=solana only.
impl From<MessageError> for SanitizeError
target_os=solana only.Source§fn from(err: MessageError) -> Self
fn from(err: MessageError) -> Self
Source§impl PartialEq for MessageError
Available on non-target_os=solana only.
impl PartialEq for MessageError
target_os=solana only.impl Eq for MessageError
target_os=solana only.impl StructuralPartialEq for MessageError
target_os=solana only.Auto Trait Implementations§
impl Freeze for MessageError
impl RefUnwindSafe for MessageError
impl Send for MessageError
impl Sync for MessageError
impl Unpin for MessageError
impl UnsafeUnpin for MessageError
impl UnwindSafe for MessageError
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