pub struct PriorityRouter { /* private fields */ }Expand description
Priority-based router
Implementations§
Source§impl PriorityRouter
impl PriorityRouter
Sourcepub fn new(
high_priority_queue: impl Into<String>,
normal_priority_queue: impl Into<String>,
low_priority_queue: impl Into<String>,
) -> Self
pub fn new( high_priority_queue: impl Into<String>, normal_priority_queue: impl Into<String>, low_priority_queue: impl Into<String>, ) -> Self
Create a new priority-based router
Sourcepub fn with_thresholds(self, high: u8, low: u8) -> Self
pub fn with_thresholds(self, high: u8, low: u8) -> Self
Set priority thresholds
Auto Trait Implementations§
impl Freeze for PriorityRouter
impl RefUnwindSafe for PriorityRouter
impl Send for PriorityRouter
impl Sync for PriorityRouter
impl Unpin for PriorityRouter
impl UnwindSafe for PriorityRouter
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