pub enum PermitState {
Ready,
InFlight,
Recoverable,
PendingReconciliation,
Spent,
}Expand description
Observable permit lifecycle state.
Variants§
Ready
Ready to authorize one attempt.
InFlight
One caller currently owns the attempt.
Recoverable
A proven-not-sent attempt awaits generation-bound recovery.
PendingReconciliation
Delivery may have happened and operation-specific reconciliation is required.
Spent
Authority is permanently spent.
Trait Implementations§
Source§impl Clone for PermitState
impl Clone for PermitState
Source§fn clone(&self) -> PermitState
fn clone(&self) -> PermitState
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 PermitState
Source§impl Debug for PermitState
impl Debug for PermitState
impl Eq for PermitState
Source§impl PartialEq for PermitState
impl PartialEq for PermitState
impl StructuralPartialEq for PermitState
Auto Trait Implementations§
impl Freeze for PermitState
impl RefUnwindSafe for PermitState
impl Send for PermitState
impl Sync for PermitState
impl Unpin for PermitState
impl UnsafeUnpin for PermitState
impl UnwindSafe for PermitState
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