pub enum ServiceClass {
Idle,
Warm,
Audible,
}Expand description
Priority class for worker scheduling.
Nodes with higher service class are served first when the scheduler selects which node to process next.
Variants§
Idle
Not playing, not needed soon. Lowest priority.
Warm
Preloading or about to play. Medium priority.
Audible
Currently audible. Highest priority.
Trait Implementations§
Source§impl Clone for ServiceClass
impl Clone for ServiceClass
Source§fn clone(&self) -> ServiceClass
fn clone(&self) -> ServiceClass
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 moreSource§impl Debug for ServiceClass
impl Debug for ServiceClass
Source§impl Default for ServiceClass
impl Default for ServiceClass
Source§fn default() -> ServiceClass
fn default() -> ServiceClass
Returns the “default value” for a type. Read more
Source§impl From<ServiceClass> for u8
impl From<ServiceClass> for u8
Source§fn from(class: ServiceClass) -> Self
fn from(class: ServiceClass) -> Self
Converts to this type from the input type.
Source§impl From<u8> for ServiceClass
impl From<u8> for ServiceClass
Source§impl Ord for ServiceClass
impl Ord for ServiceClass
Source§fn cmp(&self, other: &ServiceClass) -> Ordering
fn cmp(&self, other: &ServiceClass) -> Ordering
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 ServiceClass
impl PartialEq for ServiceClass
Source§fn eq(&self, other: &ServiceClass) -> bool
fn eq(&self, other: &ServiceClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ServiceClass
impl PartialOrd for ServiceClass
impl Copy for ServiceClass
impl Eq for ServiceClass
impl StructuralPartialEq for ServiceClass
Auto Trait Implementations§
impl Freeze for ServiceClass
impl RefUnwindSafe for ServiceClass
impl Send for ServiceClass
impl Sync for ServiceClass
impl Unpin for ServiceClass
impl UnsafeUnpin for ServiceClass
impl UnwindSafe for ServiceClass
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