pub enum WatchCondition {
ValueAbove(f32),
ValueBelow(f32),
ChangeByPercent(f32),
Available,
NewInstance,
}Expand description
Condition that triggers a watch alert.
Variants§
ValueAbove(f32)
Feature value goes above threshold.
ValueBelow(f32)
Feature value goes below threshold.
ChangeByPercent(f32)
Feature changes by more than a percentage threshold.
Available
A previously unavailable item becomes available.
NewInstance
A new node of the watched type appears.
Trait Implementations§
Source§impl Clone for WatchCondition
impl Clone for WatchCondition
Source§fn clone(&self) -> WatchCondition
fn clone(&self) -> WatchCondition
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 WatchCondition
impl Debug for WatchCondition
Source§impl<'de> Deserialize<'de> for WatchCondition
impl<'de> Deserialize<'de> for WatchCondition
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
Auto Trait Implementations§
impl Freeze for WatchCondition
impl RefUnwindSafe for WatchCondition
impl Send for WatchCondition
impl Sync for WatchCondition
impl Unpin for WatchCondition
impl UnsafeUnpin for WatchCondition
impl UnwindSafe for WatchCondition
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