Enum rustix::fs::FlockOperation
source · #[repr(i32)]
pub enum FlockOperation {
LockShared,
LockExclusive,
Unlock,
NonBlockingLockShared,
NonBlockingLockExclusive,
NonBlockingUnlock,
}
Expand description
LOCK_*
constants for use with flock
Variants§
LOCK_SH
LockExclusive
LOCK_EX
Unlock
LOCK_UN
LOCK_SH | LOCK_NB
NonBlockingLockExclusive
LOCK_EX | LOCK_NB
NonBlockingUnlock
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 more