pub enum LockMode {
Shared,
Exclusive,
}Expand description
Whether the file should be locked shared (multiple readers) or exclusive (sole owner).
Variants§
Shared lock — multiple holders allowed; conflicts with any exclusive lock.
Exclusive
Exclusive lock — sole holder; conflicts with any shared or exclusive lock.
Trait Implementations§
impl Copy for LockMode
impl Eq for LockMode
impl StructuralPartialEq for LockMode
Auto Trait Implementations§
impl Freeze for LockMode
impl RefUnwindSafe for LockMode
impl Send for LockMode
impl Sync for LockMode
impl Unpin for LockMode
impl UnsafeUnpin for LockMode
impl UnwindSafe for LockMode
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