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,
}target_os=solana only.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
impl Clone for MessageError
Source§fn clone(&self) -> MessageError
fn clone(&self) -> MessageError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MessageError
impl Debug for MessageError
Source§impl Display for MessageError
impl Display for MessageError
Source§impl Error for MessageError
impl Error for MessageError
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
use the Display impl or to_string()
Source§impl From<MessageError> for SanitizeError
impl From<MessageError> for SanitizeError
Source§fn from(err: MessageError) -> Self
fn from(err: MessageError) -> Self
Source§impl PartialEq for MessageError
impl PartialEq for MessageError
Source§fn eq(&self, other: &MessageError) -> bool
fn eq(&self, other: &MessageError) -> bool
self and other values to be equal, and is used by ==.impl Eq for MessageError
impl StructuralPartialEq for MessageError
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