Enum rustix::fs::FlockOperation
source · [−]#[repr(u32)]
pub enum FlockOperation {
LockShared,
LockExclusive,
Unlock,
NonBlockingLockShared,
NonBlockingLockExclusive,
NonBlockingUnlock,
}
Expand description
LOCK_*
constants for use with flock
Variants
LockShared
LOCK_SH
LockExclusive
LOCK_EX
Unlock
LOCK_UN
NonBlockingLockShared
LOCK_SH | LOCK_NB
NonBlockingLockExclusive
LOCK_EX | LOCK_NB
NonBlockingUnlock
LOCK_UN | LOCK_NB
Trait Implementations
sourceimpl Clone for FlockOperation
impl Clone for FlockOperation
sourcefn clone(&self) -> FlockOperation
fn clone(&self) -> FlockOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlockOperation
impl Debug for FlockOperation
sourceimpl PartialEq<FlockOperation> for FlockOperation
impl PartialEq<FlockOperation> for FlockOperation
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more