pub struct RecoveryHandler {
pub name: String,
pub trigger: Condition,
pub actions: Vec<Action>,
pub resume: ResumeStrategy,
}Expand description
A domain heuristic that fires when the executor detects a known “lost state”.
Fields§
§name: StringDescriptive name shown in logs (e.g. "dismiss_error_dialog").
trigger: ConditionCondition that identifies this recovery scenario.
actions: Vec<Action>Actions to execute to restore a known-good state.
resume: ResumeStrategyWhat the executor does after the recovery actions complete.
Trait Implementations§
Source§impl Clone for RecoveryHandler
impl Clone for RecoveryHandler
Source§fn clone(&self) -> RecoveryHandler
fn clone(&self) -> RecoveryHandler
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 moreAuto Trait Implementations§
impl Freeze for RecoveryHandler
impl RefUnwindSafe for RecoveryHandler
impl Send for RecoveryHandler
impl Sync for RecoveryHandler
impl Unpin for RecoveryHandler
impl UnsafeUnpin for RecoveryHandler
impl UnwindSafe for RecoveryHandler
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