#[repr(u32)]pub enum DlpError {
Show 45 variants
InvalidAuthority = 0,
NotUndelegatable = 1,
Unauthorized = 2,
InvalidAuthorityForProgram = 3,
InvalidDelegatedAccount = 4,
InvalidDelegatedState = 5,
InvalidReimbursementAccount = 6,
InvalidAccountDataAfterCPI = 7,
InvalidValidatorBalanceAfterCPI = 8,
InvalidReimbursementAddressForDelegationRent = 9,
InvalidWhitelistProgramConfig = 10,
AlreadyUndelegated = 11,
NonceOutOfOrder = 12,
Overflow = 13,
TooManySeeds = 14,
InvalidDiff = 15,
InvalidDiffAlignment = 16,
MergeDiffError = 17,
CommitStateInvalidSeeds = 18,
CommitStateInvalidAccountOwner = 19,
CommitStateAlreadyInitialized = 20,
CommitStateImmutable = 21,
CommitRecordInvalidSeeds = 22,
CommitRecordInvalidAccountOwner = 23,
CommitRecordAlreadyInitialized = 24,
CommitRecordImmutable = 25,
DelegationRecordInvalidSeeds = 26,
DelegationRecordInvalidAccountOwner = 27,
DelegationRecordAlreadyInitialized = 28,
DelegationRecordImmutable = 29,
DelegationMetadataInvalidSeeds = 30,
DelegationMetadataInvalidAccountOwner = 31,
DelegationMetadataAlreadyInitialized = 32,
DelegationMetadataImmutable = 33,
UndelegateBufferInvalidSeeds = 34,
UndelegateBufferInvalidAccountOwner = 35,
UndelegateBufferAlreadyInitialized = 36,
UndelegateBufferImmutable = 37,
InvalidDataLength = 38,
InvalidDiscriminator = 39,
InvalidDelegationRecordData = 40,
TooManyAccountKeys = 41,
DelegationToSystemProgramNotAllowed = 42,
InsufficientRent = 43,
InfallibleError = 100,
}Variants§
InvalidAuthority = 0
NotUndelegatable = 1
InvalidAuthorityForProgram = 3
InvalidDelegatedAccount = 4
InvalidDelegatedState = 5
InvalidReimbursementAccount = 6
InvalidAccountDataAfterCPI = 7
InvalidValidatorBalanceAfterCPI = 8
InvalidReimbursementAddressForDelegationRent = 9
InvalidWhitelistProgramConfig = 10
AlreadyUndelegated = 11
NonceOutOfOrder = 12
Overflow = 13
TooManySeeds = 14
InvalidDiff = 15
InvalidDiffAlignment = 16
MergeDiffError = 17
CommitStateInvalidSeeds = 18
CommitStateInvalidAccountOwner = 19
CommitStateAlreadyInitialized = 20
CommitStateImmutable = 21
CommitRecordInvalidSeeds = 22
CommitRecordInvalidAccountOwner = 23
CommitRecordAlreadyInitialized = 24
CommitRecordImmutable = 25
DelegationRecordInvalidSeeds = 26
DelegationRecordInvalidAccountOwner = 27
DelegationRecordAlreadyInitialized = 28
DelegationRecordImmutable = 29
DelegationMetadataInvalidSeeds = 30
DelegationMetadataInvalidAccountOwner = 31
DelegationMetadataAlreadyInitialized = 32
DelegationMetadataImmutable = 33
UndelegateBufferInvalidSeeds = 34
UndelegateBufferInvalidAccountOwner = 35
UndelegateBufferAlreadyInitialized = 36
UndelegateBufferImmutable = 37
InvalidDataLength = 38
InvalidDiscriminator = 39
InvalidDelegationRecordData = 40
TooManyAccountKeys = 41
DelegationToSystemProgramNotAllowed = 42
InsufficientRent = 43
InfallibleError = 100
Trait Implementations§
Source§impl Error for DlpError
impl Error for DlpError
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<DlpError> for ProgramError
impl From<DlpError> for ProgramError
Source§impl From<DlpError> for ProgramError
impl From<DlpError> for ProgramError
Source§impl TryFromPrimitive for DlpError
impl TryFromPrimitive for DlpError
impl Copy for DlpError
impl Eq for DlpError
impl StructuralPartialEq for DlpError
Auto Trait Implementations§
impl Freeze for DlpError
impl RefUnwindSafe for DlpError
impl Send for DlpError
impl Sync for DlpError
impl Unpin for DlpError
impl UnsafeUnpin for DlpError
impl UnwindSafe for DlpError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
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>
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