pub struct Lifecycle {
pub on_timeout: String,
pub auto_resume: Option<bool>,
pub park_after_ms: Option<u64>,
pub park_max_ms: Option<u64>,
pub hibernate_after_parked_ms: Option<u64>,
pub checkpoint_every_ms: Option<u64>,
}Expand description
Idle lifecycle policy (pause/kill on timeout; optional auto-resume).
Fields§
§on_timeout: String§auto_resume: Option<bool>§park_after_ms: Option<u64>Auto-park (deschedule) the guest after this many milliseconds with no activity. Parking freezes vCPUs but keeps the slot, ports and control channel resident, so the next request wakes it in milliseconds. Floored by the gateway and capped at the session’s idle window.
park_max_ms: Option<u64>Bounded park: the most a session may stay parked before the gateway wakes it unconditionally, even with no incoming traffic. Floored at the gateway’s park floor and capped at the idle window.
hibernate_after_parked_ms: Option<u64>Escalate a session parked this long to a full hibernate (durable checkpoint, slot freed) rather than staying frozen indefinitely.
checkpoint_every_ms: Option<u64>Take a live durable checkpoint at most this often while the session runs. Floored server-side.
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
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