pub struct SandboxLifecyclePolicy {
pub max_lifetime_seconds: Option<u32>,
pub idle_pause_seconds: Option<u32>,
}Expand description
How long a sandbox may live and when it is paused.
Declaration-time ceilings, not per-request values: every sandbox created through this declaration’s binding is held to them, whatever a caller asks for at runtime.
Fields§
§max_lifetime_seconds: Option<u32>Wall-clock ceiling on a single sandbox, after which the platform terminates it.
Optional because not every backend has the primitive: Kubernetes has
activeDeadlineSeconds and AWS maximumDurationInSeconds, while neither Azure nor Local
expose one, so declaring a ceiling there is refused at plan time rather than accepted and
never applied. AWS caps it at 8 hours.
idle_pause_seconds: Option<u32>Idle period after which the sandbox is paused, where the platform supports it
Trait Implementations§
Source§impl Clone for SandboxLifecyclePolicy
impl Clone for SandboxLifecyclePolicy
Source§impl Debug for SandboxLifecyclePolicy
impl Debug for SandboxLifecyclePolicy
Source§impl<'de> Deserialize<'de> for SandboxLifecyclePolicy
impl<'de> Deserialize<'de> for SandboxLifecyclePolicy
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 Eq for SandboxLifecyclePolicy
Source§impl PartialEq for SandboxLifecyclePolicy
impl PartialEq for SandboxLifecyclePolicy
Source§impl Serialize for SandboxLifecyclePolicy
impl Serialize for SandboxLifecyclePolicy
impl StructuralPartialEq for SandboxLifecyclePolicy
Auto Trait Implementations§
impl Freeze for SandboxLifecyclePolicy
impl RefUnwindSafe for SandboxLifecyclePolicy
impl Send for SandboxLifecyclePolicy
impl Sync for SandboxLifecyclePolicy
impl Unpin for SandboxLifecyclePolicy
impl UnsafeUnpin for SandboxLifecyclePolicy
impl UnwindSafe for SandboxLifecyclePolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.