pub enum LockKind {
Optimistic,
WriterExclusive,
FullyExclusive,
}Expand description
Types of locks that can be acquired on the filter
Variants§
Optimistic
Optimistic version tracking - does not block other operations but captures a version number to detect if data changed during the operation
WriterExclusive
Exclusive among writers only - prevents other writers but allows concurrent readers
FullyExclusive
Fully exclusive access - blocks all other operations (used only during evictions)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockKind
impl RefUnwindSafe for LockKind
impl Send for LockKind
impl Sync for LockKind
impl Unpin for LockKind
impl UnwindSafe for LockKind
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