#[repr(u32)]pub enum ErrorCodes {
Show 33 variants
NotEnoughStorage,
FileNameLengthExceedsLimit,
InvalidSha256Hash,
HasHadBadCsam,
StorageAccountMarkedImmutable,
ClaimingStakeTooSoon,
SolanaStorageAccountNotMutable,
RemovingTooMuchStorage,
UnsignedIntegerCastFailed,
NonzeroRemainingFileAccounts,
AccountStillInGracePeriod,
AccountNotMarkedToBeDeleted,
FileStillInGracePeriod,
FileNotMarkedToBeDeleted,
FileMarkedImmutable,
NoStorageIncrease,
ExceededStorageLimit,
InsufficientFunds,
NotEnoughStorageOnShadowDrive,
AccountTooSmall,
DidNotAgreeToToS,
InvalidTokenTransferAmounts,
FailedToCloseAccount,
FailedToTransferToEmissionsWallet,
FailedToTransferToEmissionsWalletFromUser,
FailedToReturnUserFunds,
NeedSomeFees,
NeedSomeCrankBps,
AlreadyMarkedForDeletion,
EmptyStakeAccount,
IdentifierExceededMaxLength,
OnlyAdmin1CanChangeAdmins,
OnlyOneOwnerAllowedInV1_5,
}Variants§
NotEnoughStorage
FileNameLengthExceedsLimit
InvalidSha256Hash
HasHadBadCsam
StorageAccountMarkedImmutable
ClaimingStakeTooSoon
SolanaStorageAccountNotMutable
RemovingTooMuchStorage
UnsignedIntegerCastFailed
NonzeroRemainingFileAccounts
AccountStillInGracePeriod
AccountNotMarkedToBeDeleted
FileStillInGracePeriod
FileNotMarkedToBeDeleted
FileMarkedImmutable
NoStorageIncrease
ExceededStorageLimit
InsufficientFunds
NotEnoughStorageOnShadowDrive
AccountTooSmall
DidNotAgreeToToS
InvalidTokenTransferAmounts
FailedToCloseAccount
FailedToTransferToEmissionsWallet
FailedToTransferToEmissionsWalletFromUser
FailedToReturnUserFunds
NeedSomeFees
NeedSomeCrankBps
AlreadyMarkedForDeletion
EmptyStakeAccount
IdentifierExceededMaxLength
OnlyAdmin1CanChangeAdmins
OnlyOneOwnerAllowedInV1_5
Implementations§
Trait Implementations§
source§impl Clone for ErrorCodes
impl Clone for ErrorCodes
source§fn clone(&self) -> ErrorCodes
fn clone(&self) -> ErrorCodes
Returns a copy 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 ErrorCodes
impl Debug for ErrorCodes
source§impl Display for ErrorCodes
impl Display for ErrorCodes
source§impl From<ErrorCodes> for Error
impl From<ErrorCodes> for Error
source§fn from(error_code: ErrorCodes) -> Error
fn from(error_code: ErrorCodes) -> Error
Converts to this type from the input type.
source§impl From<ErrorCodes> for u32
impl From<ErrorCodes> for u32
source§fn from(e: ErrorCodes) -> u32
fn from(e: ErrorCodes) -> u32
Converts to this type from the input type.
impl Copy for ErrorCodes
Auto Trait Implementations§
impl RefUnwindSafe for ErrorCodes
impl Send for ErrorCodes
impl Sync for ErrorCodes
impl Unpin for ErrorCodes
impl UnwindSafe for ErrorCodes
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