pub enum EscalationAction {
Approved,
Rejected,
Notified(usize),
Reassigned(Assignee),
Exhausted,
Stale,
}Expand description
What an escalation did to a gate.
§Examples
use ironflow_engine::escalation::EscalationAction;
assert_eq!(EscalationAction::Notified(2), EscalationAction::Notified(2));
assert_ne!(EscalationAction::Approved, EscalationAction::Rejected);Variants§
Approved
Gate auto-approved; the run was resumed.
Rejected
Gate auto-rejected; step and run failed.
Notified(usize)
n notifications sent; the timer was restarted.
Reassigned(Assignee)
Gate reassigned; the timer was restarted.
Exhausted
The policy chain ran out; the gate stays open with no timer.
Stale
The gate resolved between the claim and the escalation — nothing to do.
Implementations§
Trait Implementations§
Source§impl Clone for EscalationAction
impl Clone for EscalationAction
Source§impl Debug for EscalationAction
impl Debug for EscalationAction
impl Eq for EscalationAction
Source§impl<'_derivative_strum> From<&'_derivative_strum EscalationAction> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum EscalationAction> for &'static str
Source§fn from(x: &'_derivative_strum EscalationAction) -> &'static str
fn from(x: &'_derivative_strum EscalationAction) -> &'static str
Converts to this type from the input type.
Source§impl From<EscalationAction> for &'static str
impl From<EscalationAction> for &'static str
Source§fn from(x: EscalationAction) -> &'static str
fn from(x: EscalationAction) -> &'static str
Converts to this type from the input type.
Source§impl PartialEq for EscalationAction
impl PartialEq for EscalationAction
impl StructuralPartialEq for EscalationAction
Auto Trait Implementations§
impl Freeze for EscalationAction
impl RefUnwindSafe for EscalationAction
impl Send for EscalationAction
impl Sync for EscalationAction
impl Unpin for EscalationAction
impl UnsafeUnpin for EscalationAction
impl UnwindSafe for EscalationAction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.