Enum linux_api::fcntl::FcntlRwHint
source · #[repr(u32)]pub enum FcntlRwHint {
RWH_WRITE_LIFE_NOT_SET = 0,
RWH_WRITE_LIFE_NONE = 1,
RWH_WRITE_LIFE_SHORT = 2,
RWH_WRITE_LIFE_MEDIUM = 3,
RWH_WRITE_LIFE_LONG = 4,
RWH_WRITE_LIFE_EXTREME = 5,
}
Expand description
Read-write hint, as used with FcntlCommand::F_GET_RW_HINT
and FcntlCommand::F_SET_RW_HINT
.
Variants§
RWH_WRITE_LIFE_NOT_SET = 0
RWH_WRITE_LIFE_NONE = 1
RWH_WRITE_LIFE_SHORT = 2
RWH_WRITE_LIFE_MEDIUM = 3
RWH_WRITE_LIFE_LONG = 4
RWH_WRITE_LIFE_EXTREME = 5
Trait Implementations§
source§impl Clone for FcntlRwHint
impl Clone for FcntlRwHint
source§fn clone(&self) -> FcntlRwHint
fn clone(&self) -> FcntlRwHint
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 FcntlRwHint
impl Debug for FcntlRwHint
source§impl From<FcntlRwHint> for u32
impl From<FcntlRwHint> for u32
source§fn from(enum_value: FcntlRwHint) -> Self
fn from(enum_value: FcntlRwHint) -> Self
Converts to this type from the input type.
source§impl PartialEq for FcntlRwHint
impl PartialEq for FcntlRwHint
source§impl TryFrom<u32> for FcntlRwHint
impl TryFrom<u32> for FcntlRwHint
source§type Error = TryFromPrimitiveError<FcntlRwHint>
type Error = TryFromPrimitiveError<FcntlRwHint>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for FcntlRwHint
impl TryFromPrimitive for FcntlRwHint
type Primitive = u32
type Error = TryFromPrimitiveError<FcntlRwHint>
const NAME: &'static str = "FcntlRwHint"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for FcntlRwHint
impl Eq for FcntlRwHint
impl StructuralPartialEq for FcntlRwHint
Auto Trait Implementations§
impl Freeze for FcntlRwHint
impl RefUnwindSafe for FcntlRwHint
impl Send for FcntlRwHint
impl Sync for FcntlRwHint
impl Unpin for FcntlRwHint
impl UnwindSafe for FcntlRwHint
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
)