pub enum UpgradeChoiceError {
Invalid,
BalanceOverflow,
SerialExhausted,
StaleOffer,
NoPoints,
NotOffered,
Capped,
}Expand description
Choice-session failures, each leaving ranks, points and pending offer intact.
These are additive; the legacy LoopError and upgrade APIs are unchanged.
Variants§
Invalid
Zero namespace, invalid upgrade state, or K > N at construction.
BalanceOverflow
Explicit credit would exceed u32::MAX; no partial credit is admitted.
SerialExhausted
All u64::MAX offer serials were issued. Reset cannot rewind this limit.
StaleOffer
No pending offer, or the namespace/serial differs from its identity.
NoPoints
No earned point is available.
NotOffered
The chosen upgrade index is absent from the pending offer.
Capped
The offered upgrade is already at its cap.
Trait Implementations§
Source§impl Clone for UpgradeChoiceError
impl Clone for UpgradeChoiceError
Source§fn clone(&self) -> UpgradeChoiceError
fn clone(&self) -> UpgradeChoiceError
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 UpgradeChoiceError
impl Debug for UpgradeChoiceError
Source§impl PartialEq for UpgradeChoiceError
impl PartialEq for UpgradeChoiceError
impl Copy for UpgradeChoiceError
impl Eq for UpgradeChoiceError
impl StructuralPartialEq for UpgradeChoiceError
Auto Trait Implementations§
impl Freeze for UpgradeChoiceError
impl RefUnwindSafe for UpgradeChoiceError
impl Send for UpgradeChoiceError
impl Sync for UpgradeChoiceError
impl Unpin for UpgradeChoiceError
impl UnwindSafe for UpgradeChoiceError
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