pub struct RuntimePolicy {
pub min_running_seconds: u64,
pub min_warm_seconds: u64,
pub drain_timeout_seconds: u64,
pub graceful_shutdown_seconds: u64,
}Expand description
Per-pool runtime policy for minimum runtime enforcement and graceful lifecycle.
Fields§
§min_running_seconds: u64Minimum seconds an instance must stay Running before eligible for Warm.
min_warm_seconds: u64Minimum seconds an instance must stay Warm before eligible for Sleep.
drain_timeout_seconds: u64Maximum seconds to wait for guest drain ACK before forcing sleep.
graceful_shutdown_seconds: u64Maximum seconds for graceful shutdown before SIGKILL.
Trait Implementations§
Source§impl Clone for RuntimePolicy
impl Clone for RuntimePolicy
Source§fn clone(&self) -> RuntimePolicy
fn clone(&self) -> RuntimePolicy
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 RuntimePolicy
impl Debug for RuntimePolicy
Source§impl Default for RuntimePolicy
impl Default for RuntimePolicy
Source§impl<'de> Deserialize<'de> for RuntimePolicy
impl<'de> Deserialize<'de> for RuntimePolicy
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 RuntimePolicy
impl RefUnwindSafe for RuntimePolicy
impl Send for RuntimePolicy
impl Sync for RuntimePolicy
impl Unpin for RuntimePolicy
impl UnsafeUnpin for RuntimePolicy
impl UnwindSafe for RuntimePolicy
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