pub struct DefaultSupervisor { /* private fields */ }Expand description
A supervisor that restarts on retryable errors and stops otherwise.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultSupervisor
impl Clone for DefaultSupervisor
Source§fn clone(&self) -> DefaultSupervisor
fn clone(&self) -> DefaultSupervisor
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 DefaultSupervisor
impl Debug for DefaultSupervisor
Source§impl Default for DefaultSupervisor
impl Default for DefaultSupervisor
Source§impl SupervisorPolicy for DefaultSupervisor
impl SupervisorPolicy for DefaultSupervisor
Source§fn on_agent_error(&self, _name: &str, error: &AgentError) -> SupervisorAction
fn on_agent_error(&self, _name: &str, error: &AgentError) -> SupervisorAction
Called when a spawned agent terminates with an error.
Auto Trait Implementations§
impl Freeze for DefaultSupervisor
impl RefUnwindSafe for DefaultSupervisor
impl Send for DefaultSupervisor
impl Sync for DefaultSupervisor
impl Unpin for DefaultSupervisor
impl UnsafeUnpin for DefaultSupervisor
impl UnwindSafe for DefaultSupervisor
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