pub enum AccountError {
Show 15 variants
AccountOwnedByWrongProgram,
AccountNotMutable,
InvalidDiscriminator,
BorrowAccountDataFailed,
AlreadyInitialized,
InvalidAccountSize,
AccountMutable,
InvalidAccountBalance,
FailedBorrowRentSysvar,
InvalidSigner,
InvalidSeeds,
InvalidProgramId,
ProgramNotExecutable,
AccountNotZeroed,
PinocchioProgramError(u32),
}
Variants§
AccountOwnedByWrongProgram
AccountNotMutable
InvalidDiscriminator
BorrowAccountDataFailed
AlreadyInitialized
InvalidAccountSize
AccountMutable
InvalidAccountBalance
FailedBorrowRentSysvar
InvalidSigner
InvalidSeeds
InvalidProgramId
ProgramNotExecutable
AccountNotZeroed
PinocchioProgramError(u32)
Trait Implementations§
Source§impl Clone for AccountError
impl Clone for AccountError
Source§fn clone(&self) -> AccountError
fn clone(&self) -> AccountError
Returns a duplicate 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 AccountError
impl Debug for AccountError
Source§impl Display for AccountError
impl Display for AccountError
Source§impl Error for AccountError
impl Error for AccountError
1.30.0 · 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 u32
impl From<AccountError> for u32
Source§fn from(e: AccountError) -> u32
fn from(e: AccountError) -> u32
Converts to this type from the input type.
Source§impl PartialEq for AccountError
impl PartialEq for AccountError
impl Copy for AccountError
impl StructuralPartialEq for AccountError
Auto Trait Implementations§
impl Freeze for AccountError
impl RefUnwindSafe for AccountError
impl Send for AccountError
impl Sync for AccountError
impl Unpin for AccountError
impl UnwindSafe for AccountError
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