#[non_exhaustive]pub enum LimitWarning {
#[non_exhaustive] OutOfDomain {
id: &'static str,
limit: f64,
min: f64,
max: f64,
},
#[non_exhaustive] CannotFire {
id: &'static str,
limit: f64,
},
}Expand description
An advisory raised by a limit Threshold::check accepted.
The Display rendering is a bare message with no
severity prefix; the presenting layer adds one.
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.
#[non_exhaustive]OutOfDomain
The limit lies outside the metric’s Scale::Interval domain,
so the gate either fires on every value or on none.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
#[non_exhaustive]CannotFire
The limit sits on the domain edge at the metric’s bad end — a floor at the minimum or a ceiling at the maximum — so no value can ever be strictly past it.
Trait Implementations§
Source§impl Clone for LimitWarning
impl Clone for LimitWarning
impl Copy for LimitWarning
Source§impl Debug for LimitWarning
impl Debug for LimitWarning
Source§impl Display for LimitWarning
impl Display for LimitWarning
Source§impl PartialEq for LimitWarning
impl PartialEq for LimitWarning
impl StructuralPartialEq for LimitWarning
Auto Trait Implementations§
impl Freeze for LimitWarning
impl RefUnwindSafe for LimitWarning
impl Send for LimitWarning
impl Sync for LimitWarning
impl Unpin for LimitWarning
impl UnsafeUnpin for LimitWarning
impl UnwindSafe for LimitWarning
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