pub enum PriorityClass {
RealTime,
Interactive,
Normal,
Background,
Idle,
}Expand description
Priority class for a graph node.
Variants§
RealTime
Real-time path (lowest latency, highest priority).
Interactive
Interactive path (user-facing, high priority).
Normal
Normal processing (default).
Background
Background / best-effort processing.
Idle
Idle processing (only when nothing else is pending).
Implementations§
Source§impl PriorityClass
impl PriorityClass
Sourcepub fn weight(&self) -> i32
pub fn weight(&self) -> i32
Get the numeric weight for this priority class.
Higher values mean higher priority.
Sourcepub fn all_descending() -> &'static [PriorityClass]
pub fn all_descending() -> &'static [PriorityClass]
Return all priority classes in descending priority order.
Trait Implementations§
Source§impl Clone for PriorityClass
impl Clone for PriorityClass
Source§fn clone(&self) -> PriorityClass
fn clone(&self) -> PriorityClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PriorityClass
Source§impl Debug for PriorityClass
impl Debug for PriorityClass
Source§impl Default for PriorityClass
impl Default for PriorityClass
Source§impl Display for PriorityClass
impl Display for PriorityClass
impl Eq for PriorityClass
Source§impl Hash for PriorityClass
impl Hash for PriorityClass
Source§impl Ord for PriorityClass
impl Ord for PriorityClass
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PriorityClass
impl PartialEq for PriorityClass
Source§fn eq(&self, other: &PriorityClass) -> bool
fn eq(&self, other: &PriorityClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PriorityClass
impl PartialOrd for PriorityClass
impl StructuralPartialEq for PriorityClass
Auto Trait Implementations§
impl Freeze for PriorityClass
impl RefUnwindSafe for PriorityClass
impl Send for PriorityClass
impl Sync for PriorityClass
impl Unpin for PriorityClass
impl UnsafeUnpin for PriorityClass
impl UnwindSafe for PriorityClass
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more