pub enum RestoreError {
InvalidCurve,
CurveMismatch,
InvalidLevel,
UnsettledXp,
}Expand description
First failed restore check, in declaration order. Rejection is atomic.
Variants§
InvalidCurve
Snapshot has zero base or a maximum outside 1..=1024.
CurveMismatch
Any authored value differs from the destination’s exact configuration.
InvalidLevel
Level is zero or above the snapshot’s maximum.
UnsettledXp
XP could already buy a promotion below the cap: state is not normalized.
Trait Implementations§
Source§impl Clone for RestoreError
impl Clone for RestoreError
Source§fn clone(&self) -> RestoreError
fn clone(&self) -> RestoreError
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 RestoreError
impl Debug for RestoreError
Source§impl PartialEq for RestoreError
impl PartialEq for RestoreError
impl Copy for RestoreError
impl Eq for RestoreError
impl StructuralPartialEq for RestoreError
Auto Trait Implementations§
impl Freeze for RestoreError
impl RefUnwindSafe for RestoreError
impl Send for RestoreError
impl Sync for RestoreError
impl Unpin for RestoreError
impl UnwindSafe for RestoreError
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