pub enum NoCowGuardErr {
AlreadyLocked,
Borrowed,
Poisoned,
}Expand description
An errors for exclusive lock i.e non-cow operation.
Variants§
AlreadyLocked
The instance is already exclusivly locked, so either try again later or borrow. This can be used to prevent multiple update on failures.
Borrowed
The instance is borrowed (CoW read) by the calling thread already, so deadlock prevented.
Poisoned
The instance is poisoned.
Trait Implementations§
Source§impl Clone for NoCowGuardErr
impl Clone for NoCowGuardErr
Source§fn clone(&self) -> NoCowGuardErr
fn clone(&self) -> NoCowGuardErr
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 NoCowGuardErr
impl Debug for NoCowGuardErr
Source§impl Display for NoCowGuardErr
impl Display for NoCowGuardErr
Source§impl PartialEq for NoCowGuardErr
impl PartialEq for NoCowGuardErr
impl Copy for NoCowGuardErr
impl Eq for NoCowGuardErr
impl StructuralPartialEq for NoCowGuardErr
Auto Trait Implementations§
impl Freeze for NoCowGuardErr
impl RefUnwindSafe for NoCowGuardErr
impl Send for NoCowGuardErr
impl Sync for NoCowGuardErr
impl Unpin for NoCowGuardErr
impl UnwindSafe for NoCowGuardErr
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