pub enum FileLockMode {
Exclusive,
Shared,
}Expand description
An enumeration of types which represents how to acquire an advisory lock.
Variants§
Trait Implementations§
Source§impl Clone for FileLockMode
impl Clone for FileLockMode
Source§fn clone(&self) -> FileLockMode
fn clone(&self) -> FileLockMode
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 moreimpl Copy for FileLockMode
Source§impl Debug for FileLockMode
impl Debug for FileLockMode
impl Eq for FileLockMode
Source§impl PartialEq for FileLockMode
impl PartialEq for FileLockMode
Source§fn eq(&self, other: &FileLockMode) -> bool
fn eq(&self, other: &FileLockMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileLockMode
Auto Trait Implementations§
impl Freeze for FileLockMode
impl RefUnwindSafe for FileLockMode
impl Send for FileLockMode
impl Sync for FileLockMode
impl Unpin for FileLockMode
impl UnsafeUnpin for FileLockMode
impl UnwindSafe for FileLockMode
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