pub struct RepairPolicy {
pub reprompt_after: u32,
pub escalate_after: u32,
pub escalate_to: Option<String>,
}Expand description
A stage’s repair policy for the weird paths (silence, no-match, the user
stalling). The runtime sets repair:{stage}:reprompt once the stage has been
active reprompt_after turns without completing, and repair:{stage}:escalate
after escalate_after. When escalate_to is set, escalation also completes
the stage and routes to that stage — a deterministic “give up and hand off”.
Fields§
§reprompt_after: u32Turns the stage may be active before a reprompt signal is raised.
escalate_after: u32Turns the stage may be active before an escalation signal is raised.
escalate_to: Option<String>Stage to route to on escalation (also completes the current stage).
Implementations§
Trait Implementations§
Source§impl Clone for RepairPolicy
impl Clone for RepairPolicy
Source§fn clone(&self) -> RepairPolicy
fn clone(&self) -> RepairPolicy
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 RepairPolicy
impl Debug for RepairPolicy
Source§impl Default for RepairPolicy
impl Default for RepairPolicy
Source§impl<'de> Deserialize<'de> for RepairPolicy
impl<'de> Deserialize<'de> for RepairPolicy
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 RepairPolicy
impl RefUnwindSafe for RepairPolicy
impl Send for RepairPolicy
impl Sync for RepairPolicy
impl Unpin for RepairPolicy
impl UnwindSafe for RepairPolicy
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