#[non_exhaustive]pub enum BalanceStrategy {
RoundRobin,
None,
}
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.
RoundRobin
Rotate the list of queues by 1 every time jobs are fetched from Redis. This allows each queue in the list to have an equal opportunity to have its jobs run.
None
Do not modify the list of queues. Warning: This can lead to queue starvation! For example,
if the first queue in the list provided to Processor::new
is heavily used and always
has a job available to run, then the jobs in the other queues will never run.
Trait Implementations§
Source§impl Clone for BalanceStrategy
impl Clone for BalanceStrategy
Source§fn clone(&self) -> BalanceStrategy
fn clone(&self) -> BalanceStrategy
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 Default for BalanceStrategy
impl Default for BalanceStrategy
Source§fn default() -> BalanceStrategy
fn default() -> BalanceStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BalanceStrategy
impl RefUnwindSafe for BalanceStrategy
impl Send for BalanceStrategy
impl Sync for BalanceStrategy
impl Unpin for BalanceStrategy
impl UnwindSafe for BalanceStrategy
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