#[repr(u32)]pub enum FlockOperation {
LockShared = 1,
LockExclusive = 2,
Unlock = 8,
NonBlockingLockShared = 5,
NonBlockingLockExclusive = 6,
NonBlockingUnlock = 12,
}
Available on crate feature
fs
only.Expand description
LOCK_*
constants for use with flock
and fcntl_lock
.
Variants§
LOCK_SH
LockExclusive = 2
LOCK_EX
Unlock = 8
LOCK_UN
LOCK_SH | LOCK_NB
NonBlockingLockExclusive = 6
LOCK_EX | LOCK_NB
NonBlockingUnlock = 12
LOCK_UN | LOCK_NB
Trait Implementations§
Source§impl Clone for FlockOperation
impl Clone for FlockOperation
Source§fn clone(&self) -> FlockOperation
fn clone(&self) -> FlockOperation
Returns a copy 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 FlockOperation
impl Debug for FlockOperation
Source§impl PartialEq for FlockOperation
impl PartialEq for FlockOperation
impl Copy for FlockOperation
impl Eq for FlockOperation
impl StructuralPartialEq for FlockOperation
Auto Trait Implementations§
impl Freeze for FlockOperation
impl RefUnwindSafe for FlockOperation
impl Send for FlockOperation
impl Sync for FlockOperation
impl Unpin for FlockOperation
impl UnwindSafe for FlockOperation
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes
Size for each variant:
LockShared
: 0 bytesLockExclusive
: 0 bytesUnlock
: 0 bytesNonBlockingLockShared
: 0 bytesNonBlockingLockExclusive
: 0 bytesNonBlockingUnlock
: 0 bytes