#[non_exhaustive]pub enum StaleLockDecision {
Active,
ProvenStale,
Unknown,
}Expand description
The caller’s verdict about one observed lock record.
Core does not decide staleness. Only ProvenStale
authorizes recovery, and only for the exact observation that was classified.
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.
Active
The recorded owner is believed to still be working. Retain the record.
ProvenStale
The caller has proven from its own deployment evidence that the exact observed owner is gone. Authorizes claiming that exact record.
Unknown
Staleness could not be established. Retain the record and fail closed.
Trait Implementations§
Source§impl Clone for StaleLockDecision
impl Clone for StaleLockDecision
impl Copy for StaleLockDecision
Source§impl Debug for StaleLockDecision
impl Debug for StaleLockDecision
impl Eq for StaleLockDecision
Source§impl PartialEq for StaleLockDecision
impl PartialEq for StaleLockDecision
impl StructuralPartialEq for StaleLockDecision
Auto Trait Implementations§
impl Freeze for StaleLockDecision
impl RefUnwindSafe for StaleLockDecision
impl Send for StaleLockDecision
impl Sync for StaleLockDecision
impl Unpin for StaleLockDecision
impl UnsafeUnpin for StaleLockDecision
impl UnwindSafe for StaleLockDecision
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