pub struct GovernorManifest {
pub terminable: Option<bool>,
pub min_idle_secs: Option<u64>,
}Expand description
Idle-termination policy for a lazily-started app (issue #811 SP1 — the
app governor). Nested under AppManifest::governor.
Fields§
§terminable: Option<bool>Explicit opt-out. Some(false) exempts the app from idle termination
regardless of any other eligibility rule. None/Some(true) defers
to the other eligibility rules.
min_idle_secs: Option<u64>Minimum idle duration, in seconds, before the governor may terminate
this app — overrides the governor’s default sweep threshold. None
defers to the default.
Trait Implementations§
Source§impl Clone for GovernorManifest
impl Clone for GovernorManifest
Source§fn clone(&self) -> GovernorManifest
fn clone(&self) -> GovernorManifest
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 GovernorManifest
impl Debug for GovernorManifest
Source§impl<'de> Deserialize<'de> for GovernorManifest
impl<'de> Deserialize<'de> for GovernorManifest
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
Source§impl PartialEq for GovernorManifest
impl PartialEq for GovernorManifest
Source§impl Serialize for GovernorManifest
impl Serialize for GovernorManifest
impl StructuralPartialEq for GovernorManifest
Auto Trait Implementations§
impl Freeze for GovernorManifest
impl RefUnwindSafe for GovernorManifest
impl Send for GovernorManifest
impl Sync for GovernorManifest
impl Unpin for GovernorManifest
impl UnsafeUnpin for GovernorManifest
impl UnwindSafe for GovernorManifest
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