[][src]Enum glommio::Latency

pub enum Latency {
    Matters(Duration),
    NotImportant,
}

An attribute of a TaskQueue, passed during its creation.

This tells the executor whether or not 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 the should preempt often

NotImportant

Tasks marked as Latency::NotImportant will not signal to other tasks that the should preempt often

Trait Implementations

impl Clone for Latency[src]

impl Copy for Latency[src]

impl Debug for Latency[src]

Auto Trait Implementations

impl RefUnwindSafe for Latency

impl Send for Latency

impl Sync for Latency

impl Unpin for Latency

impl UnwindSafe for Latency

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.