pub struct SandboxSessionPolicy {
pub max_lifetime_seconds: Option<u32>,
pub idle_suspend_seconds: Option<u32>,
}Expand description
How long a session may live and when it is suspended.
Fields§
§max_lifetime_seconds: Option<u32>Wall-clock ceiling on a single session, 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_suspend_seconds: Option<u32>Idle period after which the session is suspended, where the platform supports it
Trait Implementations§
Source§impl Clone for SandboxSessionPolicy
impl Clone for SandboxSessionPolicy
Source§fn clone(&self) -> SandboxSessionPolicy
fn clone(&self) -> SandboxSessionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SandboxSessionPolicy
impl Debug for SandboxSessionPolicy
Source§impl<'de> Deserialize<'de> for SandboxSessionPolicy
impl<'de> Deserialize<'de> for SandboxSessionPolicy
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 SandboxSessionPolicy
Source§impl PartialEq for SandboxSessionPolicy
impl PartialEq for SandboxSessionPolicy
Source§impl Serialize for SandboxSessionPolicy
impl Serialize for SandboxSessionPolicy
impl StructuralPartialEq for SandboxSessionPolicy
Auto Trait Implementations§
impl Freeze for SandboxSessionPolicy
impl RefUnwindSafe for SandboxSessionPolicy
impl Send for SandboxSessionPolicy
impl Sync for SandboxSessionPolicy
impl Unpin for SandboxSessionPolicy
impl UnsafeUnpin for SandboxSessionPolicy
impl UnwindSafe for SandboxSessionPolicy
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.