#[repr(u32)]pub enum IoPriority {
VeryLow = 0,
Low = 1,
Normal = 2,
}
Available on crate feature
process
only.Expand description
Process or thread IO priority. This is independent of the standard CPU priorities.
Variants§
Trait Implementations§
Source§impl Clone for IoPriority
impl Clone for IoPriority
Source§fn clone(&self) -> IoPriority
fn clone(&self) -> IoPriority
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 IoPriority
impl Debug for IoPriority
Source§impl From<IoPriority> for u32
impl From<IoPriority> for u32
Source§fn from(enum_value: IoPriority) -> Self
fn from(enum_value: IoPriority) -> Self
Converts to this type from the input type.
Source§impl PartialEq for IoPriority
impl PartialEq for IoPriority
Source§impl TryFrom<u32> for IoPriority
impl TryFrom<u32> for IoPriority
Source§type Error = TryFromPrimitiveError<IoPriority>
type Error = TryFromPrimitiveError<IoPriority>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for IoPriority
impl TryFromPrimitive for IoPriority
const NAME: &'static str = "IoPriority"
type Primitive = u32
type Error = TryFromPrimitiveError<IoPriority>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for IoPriority
impl Eq for IoPriority
impl StructuralPartialEq for IoPriority
Auto Trait Implementations§
impl Freeze for IoPriority
impl RefUnwindSafe for IoPriority
impl Send for IoPriority
impl Sync for IoPriority
impl Unpin for IoPriority
impl UnwindSafe for IoPriority
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