pub struct Lifecycle {
pub run_until: RunUntil,
pub idle_grace: Option<Dur>,
pub drain_timeout: Option<Dur>,
pub run_id: Option<String>,
pub exit_code_map: BTreeMap<String, i32>,
pub watch_config: bool,
pub until_signal: Option<String>,
}Fields§
§run_until: RunUntil§idle_grace: Option<Dur>§drain_timeout: Option<Dur>§run_id: Option<String>§exit_code_map: BTreeMap<String, i32>§watch_config: bool§until_signal: Option<String>Delivery of this signal begins graceful shutdown — the retirement
trigger a parent composes into an instance-tier child
(until: on the template), and available to any daemon that should
drain when a named signal arrives.
Implementations§
Source§impl Lifecycle
impl Lifecycle
pub fn drain_timeout(&self) -> Duration
pub fn idle_grace(&self) -> Duration
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lifecycle
impl<'de> Deserialize<'de> for Lifecycle
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
impl StructuralPartialEq for Lifecycle
Auto Trait Implementations§
impl Freeze for Lifecycle
impl RefUnwindSafe for Lifecycle
impl Send for Lifecycle
impl Sync for Lifecycle
impl Unpin for Lifecycle
impl UnsafeUnpin for Lifecycle
impl UnwindSafe for Lifecycle
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