Enum rustix::fs::FlockOperation
source · #[repr(u32)]pub enum FlockOperation {
LockShared = 1,
LockExclusive = 2,
Unlock = 8,
NonBlockingLockShared = 5,
NonBlockingLockExclusive = 6,
NonBlockingUnlock = 12,
}
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
source§fn eq(&self, other: &FlockOperation) -> bool
fn eq(&self, other: &FlockOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FlockOperation
impl Eq for FlockOperation
impl StructuralEq for FlockOperation
impl StructuralPartialEq for FlockOperation
Auto Trait Implementations§
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