#[non_exhaustive]pub enum Discipline {
Fifo,
StrictPriority,
WeightedRoundRobin,
}Expand description
How classes competing for the same bucket are arbitrated.
#[non_exhaustive], with Fifo as the Default. The discipline only
decides between classes; within one destination stream the queue stays
a single FIFO whatever this says, because object IDs are delta-encoded
on the wire and reordering them corrupts the chain.
Written as "fifo", "strict-priority" or *weighted-round-robin*.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fifo
Whoever asked first. Default.
StrictPriority
Highest ClassRule::priority first, and only then the rest.
WeightedRoundRobin
Share by ClassRule::weight. A zero weight is rejected by
ShapeProfile::try_new under this discipline.
Trait Implementations§
Source§impl Clone for Discipline
impl Clone for Discipline
Source§fn clone(&self) -> Discipline
fn clone(&self) -> Discipline
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 Discipline
Source§impl Debug for Discipline
impl Debug for Discipline
Source§impl Default for Discipline
impl Default for Discipline
Source§fn default() -> Discipline
fn default() -> Discipline
Returns the “default value” for a type. Read more
impl Eq for Discipline
Source§impl PartialEq for Discipline
impl PartialEq for Discipline
impl StructuralPartialEq for Discipline
Auto Trait Implementations§
impl Freeze for Discipline
impl RefUnwindSafe for Discipline
impl Send for Discipline
impl Sync for Discipline
impl Unpin for Discipline
impl UnsafeUnpin for Discipline
impl UnwindSafe for Discipline
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