#[non_exhaustive]pub enum Fairness {
Fair(FairOrder),
Unfair,
}Expand description
Which fairness property SemaphoreQueue::try_acquire should respect
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.
Fair(FairOrder)
SemaphoreQueue::try_acquire will be fair.
Unfair
SemaphoreQueue::try_acquire will be unfair.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fairness
impl RefUnwindSafe for Fairness
impl Send for Fairness
impl Sync for Fairness
impl Unpin for Fairness
impl UnwindSafe for Fairness
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