pub enum Class {
Realtime(RtPriorityLevel),
BestEffort(BePriorityLevel),
Idle,
}Expand description
A priority class, being either real-time (IOPRIO_CLASS_RT), best-effort (IOPRIO_CLASS_BE),
or idle (IOPRIO_CLASS_IDLE).
Variants§
Realtime(RtPriorityLevel)
The real-time class (IOPRIO_CLASS_RT), requiring elevated privileges to set to.
BestEffort(BePriorityLevel)
The best-effort class (IOPRIO_CLASS_BE), which is the default class.
Idle
The Idle class (IOPRIO_CLASS_IDLE).
All I/O done with this priority, will only be scheduled when the resource accessed, is completely idle. This is the lowest possible priority, and does not require any capability to set (with the exception of kernels before 2.6.25).
Trait Implementations§
Source§impl Ord for Class
impl Ord for Class
Source§impl PartialOrd for Class
impl PartialOrd for Class
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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