pub struct SupervisorPolicy {
pub max_restarts: usize,
pub restart_window_secs: u64,
pub backoff: RestartBackoff,
}Expand description
Supervisor restart policy.
Fields§
§max_restarts: usizeMax restart attempts within the window.
restart_window_secs: u64Time window for counting restarts (seconds).
backoff: RestartBackoffBackoff strategy.
Implementations§
Source§impl SupervisorPolicy
impl SupervisorPolicy
Sourcepub fn no_restart() -> Self
pub fn no_restart() -> Self
No automatic restarts.
Trait Implementations§
Source§impl Clone for SupervisorPolicy
impl Clone for SupervisorPolicy
Source§fn clone(&self) -> SupervisorPolicy
fn clone(&self) -> SupervisorPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SupervisorPolicy
impl Debug for SupervisorPolicy
Auto Trait Implementations§
impl Freeze for SupervisorPolicy
impl RefUnwindSafe for SupervisorPolicy
impl Send for SupervisorPolicy
impl Sync for SupervisorPolicy
impl Unpin for SupervisorPolicy
impl UnsafeUnpin for SupervisorPolicy
impl UnwindSafe for SupervisorPolicy
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