Enum linux_api::fcntl::FcntlLeaseType
source · #[repr(u32)]pub enum FcntlLeaseType {
F_RDLCK = 0,
F_WRLCK = 1,
F_UNLCK = 2,
F_EXLCK = 4,
F_SHLCK = 8,
}
Expand description
Lease type, as used with FcntlCommand::F_SETLEASE
Variants§
Trait Implementations§
source§impl Clone for FcntlLeaseType
impl Clone for FcntlLeaseType
source§fn clone(&self) -> FcntlLeaseType
fn clone(&self) -> FcntlLeaseType
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 FcntlLeaseType
impl Debug for FcntlLeaseType
source§impl From<FcntlLeaseType> for u32
impl From<FcntlLeaseType> for u32
source§fn from(enum_value: FcntlLeaseType) -> Self
fn from(enum_value: FcntlLeaseType) -> Self
Converts to this type from the input type.
source§impl PartialEq for FcntlLeaseType
impl PartialEq for FcntlLeaseType
source§impl TryFrom<u32> for FcntlLeaseType
impl TryFrom<u32> for FcntlLeaseType
source§type Error = TryFromPrimitiveError<FcntlLeaseType>
type Error = TryFromPrimitiveError<FcntlLeaseType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for FcntlLeaseType
impl TryFromPrimitive for FcntlLeaseType
type Primitive = u32
type Error = TryFromPrimitiveError<FcntlLeaseType>
const NAME: &'static str = "FcntlLeaseType"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for FcntlLeaseType
impl Eq for FcntlLeaseType
impl StructuralPartialEq for FcntlLeaseType
Auto Trait Implementations§
impl Freeze for FcntlLeaseType
impl RefUnwindSafe for FcntlLeaseType
impl Send for FcntlLeaseType
impl Sync for FcntlLeaseType
impl Unpin for FcntlLeaseType
impl UnwindSafe for FcntlLeaseType
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
)