#[non_exhaustive]pub enum AllocationSnapshotError {
NodeOutOfRange,
NodeAlreadyAccepted,
ZeroCost,
InsufficientBudget,
}Expand description
A disabled allocation-snapshot transition.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NodeOutOfRange
The node is outside the configured node universe.
NodeAlreadyAccepted
The node is already present in the snapshot.
ZeroCost
Accepted nodes must have a positive cost.
InsufficientBudget
The node cost exceeds the remaining budget.
Trait Implementations§
Source§impl Clone for AllocationSnapshotError
impl Clone for AllocationSnapshotError
Source§fn clone(&self) -> AllocationSnapshotError
fn clone(&self) -> AllocationSnapshotError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AllocationSnapshotError
Source§impl Debug for AllocationSnapshotError
impl Debug for AllocationSnapshotError
Source§impl Display for AllocationSnapshotError
impl Display for AllocationSnapshotError
impl Eq for AllocationSnapshotError
Source§impl Error for AllocationSnapshotError
impl Error for AllocationSnapshotError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AllocationSnapshotError
impl PartialEq for AllocationSnapshotError
impl StructuralPartialEq for AllocationSnapshotError
Auto Trait Implementations§
impl Freeze for AllocationSnapshotError
impl RefUnwindSafe for AllocationSnapshotError
impl Send for AllocationSnapshotError
impl Sync for AllocationSnapshotError
impl Unpin for AllocationSnapshotError
impl UnsafeUnpin for AllocationSnapshotError
impl UnwindSafe for AllocationSnapshotError
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