#[repr(u16)]pub enum InvalidStateCode {
Show 41 variants
Unknown = 0,
WithdrawalQueueHeadMismatch = 1,
FeeMintOverflowTotalSupply = 2,
WithdrawalQueueCacheOverflow = 3,
WithdrawalQueueMissingEntry = 4,
UnexpectedEmptyQueue = 5,
WithdrawalQueueInvariantViolation = 6,
DepositRequiresIdle = 7,
DepositOverflowTotalAssets = 8,
DepositOverflowIdleAssets = 9,
MintOverflowTotalShares = 10,
RequestWithdrawRequiresIdle = 11,
ExecuteWithdrawRequiresIdle = 12,
ExecuteWithdrawRequiresIdleUseCallbacks = 13,
StartAllocationMustReturnAllocating = 14,
AllocationPlanExceedsIdleAssets = 15,
SyncExternalRequiresActiveOp = 16,
SyncExternalRequiresAllowedStates = 17,
SyncExternalOverflowIdlePlusExternal = 18,
SyncExternalWouldMoreThanDoubleTotalAssets = 19,
AbortRefreshingRequiresActiveOp = 20,
AbortRefreshingRequiresRefreshing = 21,
AbortAllocatingRequiresAllocating = 22,
AbortAllocatingRestoreIdleMismatch = 23,
AbortWithdrawingRequiresWithdrawing = 24,
AbortWithdrawingRefundMismatch = 25,
SettlePayoutRequiresPayout = 26,
PayoutSuccessSettlementMismatch = 27,
PayoutBurnExceedsTotalShares = 28,
PayoutFailureSettlementMismatch = 29,
PayoutFailureRestoreIdleMismatch = 30,
RefreshFeesRequiresIdle = 31,
FeeRefreshTimestampMustAdvance = 32,
EmergencyResetAlreadyIdle = 33,
AtomicWithdrawRequiresIdle = 34,
AtomicWithdrawExceedsIdleAssets = 35,
AtomicWithdrawBurnExceedsTotalShares = 36,
AtomicWithdrawTotalAssetsUnderflow = 37,
RebalanceWithdrawRequiresIdle = 38,
RebalanceWithdrawExceedsExternalAssets = 39,
RebalanceWithdrawOverflowsIdleAssets = 40,
}Expand description
Indexed invalid-state reasons for stable wasm diagnostics.
Variants§
Unknown = 0
WithdrawalQueueHeadMismatch = 1
FeeMintOverflowTotalSupply = 2
WithdrawalQueueCacheOverflow = 3
WithdrawalQueueMissingEntry = 4
UnexpectedEmptyQueue = 5
WithdrawalQueueInvariantViolation = 6
DepositRequiresIdle = 7
DepositOverflowTotalAssets = 8
DepositOverflowIdleAssets = 9
RequestWithdrawRequiresIdle = 11
ExecuteWithdrawRequiresIdle = 12
ExecuteWithdrawRequiresIdleUseCallbacks = 13
StartAllocationMustReturnAllocating = 14
AllocationPlanExceedsIdleAssets = 15
SyncExternalRequiresActiveOp = 16
SyncExternalRequiresAllowedStates = 17
SyncExternalOverflowIdlePlusExternal = 18
SyncExternalWouldMoreThanDoubleTotalAssets = 19
AbortRefreshingRequiresActiveOp = 20
AbortRefreshingRequiresRefreshing = 21
AbortAllocatingRequiresAllocating = 22
AbortAllocatingRestoreIdleMismatch = 23
AbortWithdrawingRequiresWithdrawing = 24
AbortWithdrawingRefundMismatch = 25
SettlePayoutRequiresPayout = 26
PayoutSuccessSettlementMismatch = 27
PayoutFailureSettlementMismatch = 29
PayoutFailureRestoreIdleMismatch = 30
RefreshFeesRequiresIdle = 31
FeeRefreshTimestampMustAdvance = 32
EmergencyResetAlreadyIdle = 33
AtomicWithdrawRequiresIdle = 34
AtomicWithdrawExceedsIdleAssets = 35
AtomicWithdrawTotalAssetsUnderflow = 37
RebalanceWithdrawRequiresIdle = 38
RebalanceWithdrawExceedsExternalAssets = 39
RebalanceWithdrawOverflowsIdleAssets = 40
Implementations§
Trait Implementations§
Source§impl Clone for InvalidStateCode
impl Clone for InvalidStateCode
Source§fn clone(&self) -> InvalidStateCode
fn clone(&self) -> InvalidStateCode
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 InvalidStateCode
impl Debug for InvalidStateCode
Source§impl Display for InvalidStateCode
impl Display for InvalidStateCode
Source§impl From<InvalidStateCode> for KernelDiagnosticCode
impl From<InvalidStateCode> for KernelDiagnosticCode
Source§fn from(code: InvalidStateCode) -> Self
fn from(code: InvalidStateCode) -> Self
Converts to this type from the input type.
Source§impl From<InvalidStateCode> for KernelError
impl From<InvalidStateCode> for KernelError
Source§fn from(code: InvalidStateCode) -> Self
fn from(code: InvalidStateCode) -> Self
Converts to this type from the input type.
Source§impl HasKernelDiagnosticCode for InvalidStateCode
impl HasKernelDiagnosticCode for InvalidStateCode
fn diagnostic_code(&self) -> KernelDiagnosticCode
Source§impl PartialEq for InvalidStateCode
impl PartialEq for InvalidStateCode
impl Copy for InvalidStateCode
impl Eq for InvalidStateCode
impl StructuralPartialEq for InvalidStateCode
Auto Trait Implementations§
impl Freeze for InvalidStateCode
impl RefUnwindSafe for InvalidStateCode
impl Send for InvalidStateCode
impl Sync for InvalidStateCode
impl Unpin for InvalidStateCode
impl UnwindSafe for InvalidStateCode
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