pub enum Unanswered {
Defer,
Wait,
Deny,
}Expand description
What an Ask-tier gate does when nobody has answered yet.
This is a policy floor, chosen by the run’s owner — it may only tighten the
outcome, never approve anything. Deny short-circuits before any lookup so
a fleet declared free of risk-tiered work stays that way even if some older
approval for the same action is still on the channel.
Variants§
Defer
Park the request durably and report the step blocked. Nobody waits; an approval arriving later releases the gate on a subsequent run. The default when no human is watching.
Wait
Block the caller, polling until the gate timeout. The default when a terminal is attached, and the right choice for an unattended run that somebody IS watching on another surface.
Deny
Refuse every Ask-tier action outright, without writing a request. For a run that must never reach for a human — the failure is immediate and legible instead of a request nobody will answer.
Trait Implementations§
Source§impl Clone for Unanswered
impl Clone for Unanswered
Source§fn clone(&self) -> Unanswered
fn clone(&self) -> Unanswered
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for Unanswered
Source§impl Debug for Unanswered
impl Debug for Unanswered
Source§impl Default for Unanswered
impl Default for Unanswered
Source§impl<'de> Deserialize<'de> for Unanswered
impl<'de> Deserialize<'de> for Unanswered
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>,
impl Eq for Unanswered
Source§impl PartialEq for Unanswered
impl PartialEq for Unanswered
Source§impl Serialize for Unanswered
impl Serialize for Unanswered
impl StructuralPartialEq for Unanswered
Auto Trait Implementations§
impl Freeze for Unanswered
impl RefUnwindSafe for Unanswered
impl Send for Unanswered
impl Sync for Unanswered
impl Unpin for Unanswered
impl UnsafeUnpin for Unanswered
impl UnwindSafe for Unanswered
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.