pub enum LockVerdict {
Held {
remaining_s: i64,
},
Expiring {
remaining_s: i64,
},
NotHeld,
}Expand description
The decision a caller makes from one LockObservation.
Variants§
Held
Held with at least the requested margin left.
Expiring
Held, but with less than the margin left: it may lapse mid-use.
NotHeld
No lock is held. Deliberately not named Expired: a 204 is also
the NORMAL state after a successful scan trigger, because a scan
releases the lock at trigger time for any actor (C1j, D4, D12).
The client cannot tell “expired” from “released by a scan”; the
caller’s context decides which one it means.
Trait Implementations§
Source§impl Clone for LockVerdict
impl Clone for LockVerdict
impl Copy for LockVerdict
Source§impl Debug for LockVerdict
impl Debug for LockVerdict
impl Eq for LockVerdict
Source§impl PartialEq for LockVerdict
impl PartialEq for LockVerdict
impl StructuralPartialEq for LockVerdict
Auto Trait Implementations§
impl Forget for LockVerdict
impl Freeze for LockVerdict
impl Move for LockVerdict
impl RefUnwindSafe for LockVerdict
impl Send for LockVerdict
impl Sync for LockVerdict
impl Unpin for LockVerdict
impl UnsafeUnpin for LockVerdict
impl UnwindSafe for LockVerdict
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.