pub enum LockType {
FLock,
Posix,
ODF,
Other(String),
}
Expand description
The type of a file lock
Variants§
FLock
A BSD file lock created using flock
Posix
A POSIX byte-range lock created with fcntl
ODF
An Open File Description (ODF) lock created with fnctl
Other(String)
Some other unknown lock type
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LockType
impl<'de> Deserialize<'de> for LockType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LockType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LockType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LockType
impl Serialize for LockType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for LockType
impl StructuralPartialEq for LockType
Auto Trait Implementations§
impl Freeze for LockType
impl RefUnwindSafe for LockType
impl Send for LockType
impl Sync for LockType
impl Unpin for LockType
impl UnwindSafe for LockType
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