pub enum FcntlLockType {
Read,
Write,
}Expand description
Defines which types of lock can be set onto files.
Variants§
Trait Implementations§
Source§impl Clone for FcntlLockType
impl Clone for FcntlLockType
Source§fn clone(&self) -> FcntlLockType
fn clone(&self) -> FcntlLockType
Returns a duplicate 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 FcntlLockType
impl Debug for FcntlLockType
Source§impl From<FcntlLockType> for c_short
impl From<FcntlLockType> for c_short
Source§fn from(locktype: FcntlLockType) -> c_short
fn from(locktype: FcntlLockType) -> c_short
Converts to this type from the input type.
Source§impl Hash for FcntlLockType
impl Hash for FcntlLockType
Source§impl Ord for FcntlLockType
impl Ord for FcntlLockType
Source§fn cmp(&self, other: &FcntlLockType) -> Ordering
fn cmp(&self, other: &FcntlLockType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FcntlLockType
impl PartialEq for FcntlLockType
Source§impl PartialOrd for FcntlLockType
impl PartialOrd for FcntlLockType
impl Copy for FcntlLockType
impl Eq for FcntlLockType
impl StructuralPartialEq for FcntlLockType
Auto Trait Implementations§
impl Freeze for FcntlLockType
impl RefUnwindSafe for FcntlLockType
impl Send for FcntlLockType
impl Sync for FcntlLockType
impl Unpin for FcntlLockType
impl UnsafeUnpin for FcntlLockType
impl UnwindSafe for FcntlLockType
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