pub enum FileLockMode {
Exclusive,
Shared,
}Expand description
Lock access requested for a byte range of a file.
Variants§
Exclusive
Prevents other exclusive or shared locks from overlapping this range.
Allows other shared locks but not exclusive locks to overlap this range.
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
Source§impl<'de> Deserialize<'de> for FileLockMode
impl<'de> Deserialize<'de> for FileLockMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FileLockMode
Source§impl PartialEq for FileLockMode
impl PartialEq for FileLockMode
Source§impl Serialize for FileLockMode
impl Serialize for FileLockMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more