pub struct LifecycleDef {
pub restart: RestartPolicy,
pub restart_delay_ms: u64,
pub restart_delay_max_ms: u64,
pub max_restarts: u32,
pub stability_period_ms: u64,
pub start_timeout_ms: u64,
pub stop_timeout_ms: u64,
pub stop_signal: String,
}Expand description
Lifecycle configuration section.
Fields§
§restart: RestartPolicy§restart_delay_ms: u64Initial restart delay in milliseconds (doubles each restart for exponential backoff).
restart_delay_max_ms: u64Maximum restart delay in milliseconds (cap for exponential backoff).
max_restarts: u32Maximum number of restart attempts (0 = unlimited).
stability_period_ms: u64How long a service must run before backoff counter is reset (milliseconds). If a service crashes before this period, backoff continues to increase.
start_timeout_ms: u64§stop_timeout_ms: u64§stop_signal: StringTrait Implementations§
Source§impl Clone for LifecycleDef
impl Clone for LifecycleDef
Source§fn clone(&self) -> LifecycleDef
fn clone(&self) -> LifecycleDef
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 LifecycleDef
impl Debug for LifecycleDef
Source§impl Default for LifecycleDef
impl Default for LifecycleDef
Source§impl<'de> Deserialize<'de> for LifecycleDef
impl<'de> Deserialize<'de> for LifecycleDef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LifecycleDef
impl PartialEq for LifecycleDef
Source§impl Serialize for LifecycleDef
impl Serialize for LifecycleDef
impl StructuralPartialEq for LifecycleDef
Auto Trait Implementations§
impl Freeze for LifecycleDef
impl RefUnwindSafe for LifecycleDef
impl Send for LifecycleDef
impl Sync for LifecycleDef
impl Unpin for LifecycleDef
impl UnwindSafe for LifecycleDef
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