pub struct PriorityQueueConfig {
pub max_per_priority: Option<usize>,
pub prevent_starvation: bool,
pub starvation_threshold: usize,
}Expand description
Configuration for priority queue behavior
Fields§
§max_per_priority: Option<usize>Maximum messages to buffer per priority level None = unbounded (risk of memory growth)
prevent_starvation: boolEnable starvation prevention If true, occasionally process lower priority messages even when higher priority messages are available
starvation_threshold: usizeStarvation threshold: after processing N high-priority messages, process one lower-priority message (if available)
Trait Implementations§
Source§impl Clone for PriorityQueueConfig
impl Clone for PriorityQueueConfig
Source§fn clone(&self) -> PriorityQueueConfig
fn clone(&self) -> PriorityQueueConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 PriorityQueueConfig
impl Debug for PriorityQueueConfig
Auto Trait Implementations§
impl Freeze for PriorityQueueConfig
impl RefUnwindSafe for PriorityQueueConfig
impl Send for PriorityQueueConfig
impl Sync for PriorityQueueConfig
impl Unpin for PriorityQueueConfig
impl UnwindSafe for PriorityQueueConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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