#[non_exhaustive]pub enum FairOrder {
Lifo,
Fifo,
}Expand description
The order of which Acquire should enter the queue.
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.
Lifo
Last in, first out. Increases tail latencies, but can have better average performance.
Fifo
First in, first out. Fairer option, but can have cascading failures if queue processing is slow.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FairOrder
impl RefUnwindSafe for FairOrder
impl Send for FairOrder
impl Sync for FairOrder
impl Unpin for FairOrder
impl UnwindSafe for FairOrder
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