pub enum Latency {
Matters(Duration),
NotImportant,
}
Expand description
An attribute of a TaskQueue
, passed during its creation.
This tells the executor whether tasks in this class are latency sensitive. Latency sensitive tasks will be placed in their own I/O ring, and tasks in background classes can cooperatively preempt themselves in the faces of pending events for latency classes.
Variants§
Matters(Duration)
Tasks marked as Latency::Matters
will cooperatively signal to other
tasks that they should preempt often. The Duration
argument
contributes to the rate of preemption of the scheduler.
NotImportant
Tasks marked as Latency::NotImportant
will not signal to other tasks
that they should preempt often
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Latency
impl RefUnwindSafe for Latency
impl Send for Latency
impl Sync for Latency
impl Unpin for Latency
impl UnwindSafe for Latency
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