pub enum LightSdkTypesError {
Show 30 variants
InitAddressIsNone,
InitWithAddressIsNone,
InitWithAddressOutputIsNone,
MetaMutAddressIsNone,
MetaMutInputIsNone,
MetaMutOutputLamportsIsNone,
MetaMutOutputIsNone,
MetaCloseAddressIsNone,
MetaCloseInputIsNone,
FewerAccountsThanSystemAccounts,
CpiAccountsIndexOutOfBounds(usize),
InvalidCpiContextAccount,
InvalidSolPoolPdaAccount,
InvalidCpiAccountsOffset,
AccountError(AccountError),
Hasher(HasherError),
ConstraintViolation,
Borsh,
MissingCompressionInfo,
InvalidRentSponsor,
BorshIo(String),
ReadOnlyAccountsNotSupportedInCpiContext,
CompressedAccountError(CompressedAccountError),
AccountDataTooSmall,
InvalidInstructionData,
InvalidSeeds,
CpiFailed,
NotEnoughAccountKeys,
MissingRequiredSignature,
ProgramError(u32),
}Variants§
InitAddressIsNone
InitWithAddressIsNone
InitWithAddressOutputIsNone
MetaMutAddressIsNone
MetaMutInputIsNone
MetaMutOutputLamportsIsNone
MetaMutOutputIsNone
MetaCloseAddressIsNone
MetaCloseInputIsNone
FewerAccountsThanSystemAccounts
CpiAccountsIndexOutOfBounds(usize)
InvalidCpiContextAccount
InvalidSolPoolPdaAccount
InvalidCpiAccountsOffset
AccountError(AccountError)
Hasher(HasherError)
ConstraintViolation
Borsh
MissingCompressionInfo
InvalidRentSponsor
BorshIo(String)
ReadOnlyAccountsNotSupportedInCpiContext
CompressedAccountError(CompressedAccountError)
AccountDataTooSmall
InvalidInstructionData
InvalidSeeds
CpiFailed
NotEnoughAccountKeys
MissingRequiredSignature
ProgramError(u32)
Trait Implementations§
Source§impl Debug for LightSdkTypesError
impl Debug for LightSdkTypesError
Source§impl Display for LightSdkTypesError
impl Display for LightSdkTypesError
Source§impl Error for LightSdkTypesError
impl Error for LightSdkTypesError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AccountError> for LightSdkTypesError
impl From<AccountError> for LightSdkTypesError
Source§fn from(source: AccountError) -> LightSdkTypesError
fn from(source: AccountError) -> LightSdkTypesError
Converts to this type from the input type.
Source§impl From<CompressedAccountError> for LightSdkTypesError
impl From<CompressedAccountError> for LightSdkTypesError
Source§fn from(source: CompressedAccountError) -> LightSdkTypesError
fn from(source: CompressedAccountError) -> LightSdkTypesError
Converts to this type from the input type.
Source§impl From<HasherError> for LightSdkTypesError
impl From<HasherError> for LightSdkTypesError
Source§fn from(source: HasherError) -> LightSdkTypesError
fn from(source: HasherError) -> LightSdkTypesError
Converts to this type from the input type.
Source§impl PartialEq for LightSdkTypesError
impl PartialEq for LightSdkTypesError
impl StructuralPartialEq for LightSdkTypesError
Auto Trait Implementations§
impl Freeze for LightSdkTypesError
impl RefUnwindSafe for LightSdkTypesError
impl Send for LightSdkTypesError
impl Sync for LightSdkTypesError
impl Unpin for LightSdkTypesError
impl UnwindSafe for LightSdkTypesError
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