pub enum AlertState {
Inactive,
Pending,
Firing,
}Expand description
A helper type to represent possible rule health states.
Variants§
Implementations§
Source§impl AlertState
impl AlertState
pub fn is_inactive(&self) -> bool
pub fn is_pending(&self) -> bool
pub fn is_firing(&self) -> bool
Trait Implementations§
Source§impl Clone for AlertState
impl Clone for AlertState
impl Copy for AlertState
Source§impl Debug for AlertState
impl Debug for AlertState
Source§impl<'de> Deserialize<'de> for AlertState
impl<'de> Deserialize<'de> for AlertState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AlertState
impl Display for AlertState
impl Eq for AlertState
Source§impl PartialEq for AlertState
impl PartialEq for AlertState
impl StructuralPartialEq for AlertState
Auto Trait Implementations§
impl Forget for AlertState
impl Freeze for AlertState
impl Move for AlertState
impl RefUnwindSafe for AlertState
impl Send for AlertState
impl Sync for AlertState
impl Unpin for AlertState
impl UnsafeUnpin for AlertState
impl UnwindSafe for AlertState
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