Enum rustix::fs::FlockOperation
source · #[repr(u32)]pub enum FlockOperation {
LockShared,
LockExclusive,
Unlock,
NonBlockingLockShared,
NonBlockingLockExclusive,
NonBlockingUnlock,
}
Expand description
LOCK_*
constants for use with flock
and fcntl_lock
.
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 moresource§impl Debug for FlockOperation
impl Debug for FlockOperation
source§impl PartialEq<FlockOperation> for FlockOperation
impl PartialEq<FlockOperation> 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