pub enum IncidentState {
Open,
Cooldown {
until: Timestamp,
},
Escalated {
until: Timestamp,
reason: EscalationReason,
},
Closed,
Regressed {
count: u8,
},
}Variants§
Open
Cooldown
Escalated
Reported to the user; no autonomous action until until or a human acts.
until is not in §8; without it the hold could not survive a restart.
Closed
Regressed
Trait Implementations§
Source§impl Clone for IncidentState
impl Clone for IncidentState
Source§fn clone(&self) -> IncidentState
fn clone(&self) -> IncidentState
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 IncidentState
impl Debug for IncidentState
Source§impl<'de> Deserialize<'de> for IncidentState
impl<'de> Deserialize<'de> for IncidentState
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 PartialEq for IncidentState
impl PartialEq for IncidentState
Source§impl Serialize for IncidentState
impl Serialize for IncidentState
impl Eq for IncidentState
impl StructuralPartialEq for IncidentState
Auto Trait Implementations§
impl Freeze for IncidentState
impl RefUnwindSafe for IncidentState
impl Send for IncidentState
impl Sync for IncidentState
impl Unpin for IncidentState
impl UnsafeUnpin for IncidentState
impl UnwindSafe for IncidentState
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