pub struct ClassConfig {
pub max_queue: usize,
pub weight: u32,
pub reserved_slots: usize,
pub max_concurrency: usize,
}Expand description
Per-class queue configuration.
Fields§
§max_queue: usizeMaximum queued items.
weight: u32Scheduling weight (relative share; must be nonzero).
reserved_slots: usizeReserved concurrency slots (control/replication).
max_concurrency: usizeMaximum concurrent running items for this class.
Implementations§
Source§impl ClassConfig
impl ClassConfig
Sourcepub fn for_class(class: WorkloadClass) -> Self
pub fn for_class(class: WorkloadClass) -> Self
Default config for a workload class (mirrors resource-group defaults).
Trait Implementations§
Source§impl Clone for ClassConfig
impl Clone for ClassConfig
Source§fn clone(&self) -> ClassConfig
fn clone(&self) -> ClassConfig
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 ClassConfig
impl Debug for ClassConfig
impl Eq for ClassConfig
Source§impl PartialEq for ClassConfig
impl PartialEq for ClassConfig
impl StructuralPartialEq for ClassConfig
Auto Trait Implementations§
impl Freeze for ClassConfig
impl RefUnwindSafe for ClassConfig
impl Send for ClassConfig
impl Sync for ClassConfig
impl Unpin for ClassConfig
impl UnsafeUnpin for ClassConfig
impl UnwindSafe for ClassConfig
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<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