pub enum SupervisorAction {
Restart,
Stop,
Escalate,
}Expand description
What the supervisor decides after an agent error.
Variants§
Restart
Restart the failed agent with the same options.
Stop
Stop the agent permanently.
Escalate
Escalate the error to the caller but keep the agent alive.
Trait Implementations§
Source§impl Clone for SupervisorAction
impl Clone for SupervisorAction
Source§fn clone(&self) -> SupervisorAction
fn clone(&self) -> SupervisorAction
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 SupervisorAction
impl Debug for SupervisorAction
Source§impl PartialEq for SupervisorAction
impl PartialEq for SupervisorAction
impl Copy for SupervisorAction
impl Eq for SupervisorAction
impl StructuralPartialEq for SupervisorAction
Auto Trait Implementations§
impl Freeze for SupervisorAction
impl RefUnwindSafe for SupervisorAction
impl Send for SupervisorAction
impl Sync for SupervisorAction
impl Unpin for SupervisorAction
impl UnsafeUnpin for SupervisorAction
impl UnwindSafe for SupervisorAction
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