pub enum LockOptions {
Read,
ReadCreate,
ReadTruncate,
Write,
WriteCreate,
WriteTruncate,
}Variants§
Read
Shared read lock
ReadCreate
Shared read lock, create file if it doesn’t exist instead of erroring (including intermediate directories)
ReadTruncate
Shared write lock, create file if it doesn’t exist, truncate if it does
Write
Exclusive write lock
WriteCreate
Exclusive write lock, create file if it doesn’t exist instead of erroring (including intermediate directories)
WriteTruncate
Exclusive write lock, create file if it doesn’t exist, truncate if it does
Trait Implementations§
Source§impl Clone for LockOptions
impl Clone for LockOptions
Source§fn clone(&self) -> LockOptions
fn clone(&self) -> LockOptions
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 LockOptions
impl Debug for LockOptions
impl Copy for LockOptions
Auto Trait Implementations§
impl Freeze for LockOptions
impl RefUnwindSafe for LockOptions
impl Send for LockOptions
impl Sync for LockOptions
impl Unpin for LockOptions
impl UnwindSafe for LockOptions
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