pub struct RestartSupervisor { /* private fields */ }Expand description
Wraps one child Runnable and restarts it after failures with backoff.
Implementations§
Trait Implementations§
Source§impl Runnable for RestartSupervisor
impl Runnable for RestartSupervisor
Source§fn process_start(&self) -> ProcFuture<'_>
fn process_start(&self) -> ProcFuture<'_>
Start the component. The returned future resolves when the process ends
(normally or in error).
Source§fn process_handle(&self) -> Arc<dyn ProcessControlHandler>
fn process_handle(&self) -> Arc<dyn ProcessControlHandler>
Obtain a handle for shutdown / reload signalling.
Source§fn process_name(&self) -> Cow<'static, str>
fn process_name(&self) -> Cow<'static, str>
Human-readable name, used for logging only.
Auto Trait Implementations§
impl Freeze for RestartSupervisor
impl !RefUnwindSafe for RestartSupervisor
impl Send for RestartSupervisor
impl Sync for RestartSupervisor
impl Unpin for RestartSupervisor
impl UnsafeUnpin for RestartSupervisor
impl !UnwindSafe for RestartSupervisor
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