pub enum AbilityBlocker {
Disabled,
Busy,
NoCharges,
InsufficientResource,
ReservationExhausted,
}Expand description
The first condition preventing a new reservation or immediate activation.
Conditions are checked in declaration order. A snapshot still exposes charges, costs and pending reservations when an earlier condition takes precedence.
Variants§
Disabled
The host supplied enabled = false.
Busy
This slot already has an uncommitted, uncancelled reservation.
NoCharges
No unreserved charges remain.
InsufficientResource
The supplied resource pool cannot pay the cost.
ReservationExhausted
The bank has issued every possible reservation serial.
Trait Implementations§
Source§impl Clone for AbilityBlocker
impl Clone for AbilityBlocker
Source§fn clone(&self) -> AbilityBlocker
fn clone(&self) -> AbilityBlocker
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 AbilityBlocker
impl Debug for AbilityBlocker
Source§impl PartialEq for AbilityBlocker
impl PartialEq for AbilityBlocker
impl Copy for AbilityBlocker
impl Eq for AbilityBlocker
impl StructuralPartialEq for AbilityBlocker
Auto Trait Implementations§
impl Freeze for AbilityBlocker
impl RefUnwindSafe for AbilityBlocker
impl Send for AbilityBlocker
impl Sync for AbilityBlocker
impl Unpin for AbilityBlocker
impl UnwindSafe for AbilityBlocker
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