#[repr(u32)]pub enum ErrorCodes {
Show 33 variants
NotEnoughStorage = 0,
FileNameLengthExceedsLimit = 1,
InvalidSha256Hash = 2,
HasHadBadCsam = 3,
StorageAccountMarkedImmutable = 4,
ClaimingStakeTooSoon = 5,
SolanaStorageAccountNotMutable = 6,
RemovingTooMuchStorage = 7,
UnsignedIntegerCastFailed = 8,
NonzeroRemainingFileAccounts = 9,
AccountStillInGracePeriod = 10,
AccountNotMarkedToBeDeleted = 11,
FileStillInGracePeriod = 12,
FileNotMarkedToBeDeleted = 13,
FileMarkedImmutable = 14,
NoStorageIncrease = 15,
ExceededStorageLimit = 16,
InsufficientFunds = 17,
NotEnoughStorageOnShadowDrive = 18,
AccountTooSmall = 19,
DidNotAgreeToToS = 20,
InvalidTokenTransferAmounts = 21,
FailedToCloseAccount = 22,
FailedToTransferToEmissionsWallet = 23,
FailedToTransferToEmissionsWalletFromUser = 24,
FailedToReturnUserFunds = 25,
NeedSomeFees = 26,
NeedSomeCrankBps = 27,
AlreadyMarkedForDeletion = 28,
EmptyStakeAccount = 29,
IdentifierExceededMaxLength = 30,
OnlyAdmin1CanChangeAdmins = 31,
OnlyOneOwnerAllowedInV1_5 = 32,
}Variants§
NotEnoughStorage = 0
FileNameLengthExceedsLimit = 1
InvalidSha256Hash = 2
HasHadBadCsam = 3
StorageAccountMarkedImmutable = 4
ClaimingStakeTooSoon = 5
SolanaStorageAccountNotMutable = 6
RemovingTooMuchStorage = 7
UnsignedIntegerCastFailed = 8
NonzeroRemainingFileAccounts = 9
AccountStillInGracePeriod = 10
AccountNotMarkedToBeDeleted = 11
FileStillInGracePeriod = 12
FileNotMarkedToBeDeleted = 13
FileMarkedImmutable = 14
NoStorageIncrease = 15
ExceededStorageLimit = 16
InsufficientFunds = 17
NotEnoughStorageOnShadowDrive = 18
AccountTooSmall = 19
DidNotAgreeToToS = 20
InvalidTokenTransferAmounts = 21
FailedToCloseAccount = 22
FailedToTransferToEmissionsWallet = 23
FailedToTransferToEmissionsWalletFromUser = 24
FailedToReturnUserFunds = 25
NeedSomeFees = 26
NeedSomeCrankBps = 27
AlreadyMarkedForDeletion = 28
EmptyStakeAccount = 29
IdentifierExceededMaxLength = 30
OnlyAdmin1CanChangeAdmins = 31
OnlyOneOwnerAllowedInV1_5 = 32
Implementations§
Trait Implementations§
Source§impl Clone for ErrorCodes
impl Clone for ErrorCodes
Source§fn clone(&self) -> ErrorCodes
fn clone(&self) -> ErrorCodes
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 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 Freeze for ErrorCodes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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