#[non_exhaustive]pub enum WatermarkState {
BelowSoft,
BetweenSoftAndHard,
AtOrAboveHard,
}Expand description
Watermark state derived from queue occupancy and caps.
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.
BelowSoft
Well below soft watermarks.
BetweenSoftAndHard
Between soft and hard thresholds.
AtOrAboveHard
At or above hard cap.
Trait Implementations§
Source§impl Clone for WatermarkState
impl Clone for WatermarkState
Source§fn clone(&self) -> WatermarkState
fn clone(&self) -> WatermarkState
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 WatermarkState
impl Debug for WatermarkState
Source§impl Ord for WatermarkState
impl Ord for WatermarkState
Source§fn cmp(&self, other: &WatermarkState) -> Ordering
fn cmp(&self, other: &WatermarkState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WatermarkState
impl PartialEq for WatermarkState
Source§impl PartialOrd for WatermarkState
impl PartialOrd for WatermarkState
impl Copy for WatermarkState
impl Eq for WatermarkState
impl StructuralPartialEq for WatermarkState
Auto Trait Implementations§
impl Freeze for WatermarkState
impl RefUnwindSafe for WatermarkState
impl Send for WatermarkState
impl Sync for WatermarkState
impl Unpin for WatermarkState
impl UnsafeUnpin for WatermarkState
impl UnwindSafe for WatermarkState
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