pub enum TransitionError {
WrongState,
OpIdMismatch {
expected: u64,
actual: u64,
},
EmptyAllocationPlan,
EmptyRefreshPlan,
ZeroWithdrawalAmount,
ZeroEscrowShares,
InvalidIndex {
index: u32,
max: u32,
},
CollectionOverflow {
collected: u128,
remaining: u128,
},
AllocationOverflow {
allocated: u128,
remaining: u128,
},
ZeroAllocationAmount,
BurnExceedsEscrow {
burn: u128,
escrow: u128,
},
WithdrawalIncomplete {
remaining: u128,
collected: u128,
},
}Expand description
Error types for state transitions.
Variants§
WrongState
OpIdMismatch
EmptyAllocationPlan
EmptyRefreshPlan
ZeroWithdrawalAmount
InvalidIndex
CollectionOverflow
AllocationOverflow
ZeroAllocationAmount
BurnExceedsEscrow
WithdrawalIncomplete
Trait Implementations§
Source§impl Clone for TransitionError
impl Clone for TransitionError
Source§fn clone(&self) -> TransitionError
fn clone(&self) -> TransitionError
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 TransitionError
impl Debug for TransitionError
Source§impl From<TransitionError> for KernelError
impl From<TransitionError> for KernelError
Source§fn from(error: TransitionError) -> Self
fn from(error: TransitionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransitionError
impl PartialEq for TransitionError
impl Eq for TransitionError
impl StructuralPartialEq for TransitionError
Auto Trait Implementations§
impl Freeze for TransitionError
impl RefUnwindSafe for TransitionError
impl Send for TransitionError
impl Sync for TransitionError
impl Unpin for TransitionError
impl UnwindSafe for TransitionError
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