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
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)