pub enum WatermarkLevel {
Warn,
Critical,
Oom,
}Expand description
Severity bucket emitted to a WatermarkHandler.
Variants§
Warn
Soft warning — usage crossed warn_pct.
Critical
Hard warning — usage crossed critical_pct.
Oom
Out of memory — allocation failed.
Trait Implementations§
Source§impl Clone for WatermarkLevel
impl Clone for WatermarkLevel
Source§fn clone(&self) -> WatermarkLevel
fn clone(&self) -> WatermarkLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WatermarkLevel
Source§impl Debug for WatermarkLevel
impl Debug for WatermarkLevel
impl Eq for WatermarkLevel
Source§impl PartialEq for WatermarkLevel
impl PartialEq for WatermarkLevel
Source§fn eq(&self, other: &WatermarkLevel) -> bool
fn eq(&self, other: &WatermarkLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WatermarkLevel
Auto Trait Implementations§
impl Freeze for WatermarkLevel
impl RefUnwindSafe for WatermarkLevel
impl Send for WatermarkLevel
impl Sync for WatermarkLevel
impl Unpin for WatermarkLevel
impl UnsafeUnpin for WatermarkLevel
impl UnwindSafe for WatermarkLevel
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