#[repr(u8)]pub enum LockPoisonPolicy {
FailFast = 0,
Recover = 1,
}Expand description
Controls how CliCore responds when the registry lock is poisoned.
Variants§
FailFast = 0
Panic immediately when a poisoned lock is encountered.
This is the default for CLI applications where lock poisoning indicates a serious bug and silent recovery would hide inconsistent state.
Recover = 1
Recover by taking the poisoned inner value.
Trait Implementations§
Source§impl Clone for LockPoisonPolicy
impl Clone for LockPoisonPolicy
Source§fn clone(&self) -> LockPoisonPolicy
fn clone(&self) -> LockPoisonPolicy
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 moreSource§impl Debug for LockPoisonPolicy
impl Debug for LockPoisonPolicy
Source§impl PartialEq for LockPoisonPolicy
impl PartialEq for LockPoisonPolicy
Source§fn eq(&self, other: &LockPoisonPolicy) -> bool
fn eq(&self, other: &LockPoisonPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LockPoisonPolicy
impl Eq for LockPoisonPolicy
impl StructuralPartialEq for LockPoisonPolicy
Auto Trait Implementations§
impl Freeze for LockPoisonPolicy
impl RefUnwindSafe for LockPoisonPolicy
impl Send for LockPoisonPolicy
impl Sync for LockPoisonPolicy
impl Unpin for LockPoisonPolicy
impl UnsafeUnpin for LockPoisonPolicy
impl UnwindSafe for LockPoisonPolicy
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