pub enum CapacityCounterInvariantError {
ZeroLimit,
OccupiedExceedsLimit {
occupied: u64,
limit: u64,
},
}Expand description
Invalid persisted occupancy for one signed nonzero capacity.
Variants§
ZeroLimit
Protocol capacity limits are nonzero.
OccupiedExceedsLimit
Persisted occupancy is greater than its signed limit.
Trait Implementations§
Source§impl Clone for CapacityCounterInvariantError
impl Clone for CapacityCounterInvariantError
Source§fn clone(&self) -> CapacityCounterInvariantError
fn clone(&self) -> CapacityCounterInvariantError
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 CapacityCounterInvariantError
impl Eq for CapacityCounterInvariantError
impl StructuralPartialEq for CapacityCounterInvariantError
Auto Trait Implementations§
impl Freeze for CapacityCounterInvariantError
impl RefUnwindSafe for CapacityCounterInvariantError
impl Send for CapacityCounterInvariantError
impl Sync for CapacityCounterInvariantError
impl Unpin for CapacityCounterInvariantError
impl UnsafeUnpin for CapacityCounterInvariantError
impl UnwindSafe for CapacityCounterInvariantError
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