pub struct LifetimePolicy {
pub idle_timeout: Duration,
pub shutdown_grace: Duration,
pub restart_window: Duration,
pub restart_cap: usize,
}Expand description
Lifetime knobs. All durations have ADR-021 §10 defaults.
Fields§
§idle_timeout: Duration§shutdown_grace: Duration§restart_window: Duration§restart_cap: usizeTrait Implementations§
Source§impl Clone for LifetimePolicy
impl Clone for LifetimePolicy
Source§fn clone(&self) -> LifetimePolicy
fn clone(&self) -> LifetimePolicy
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 moreimpl Copy for LifetimePolicy
Source§impl Debug for LifetimePolicy
impl Debug for LifetimePolicy
Source§impl Default for LifetimePolicy
impl Default for LifetimePolicy
impl Eq for LifetimePolicy
Source§impl PartialEq for LifetimePolicy
impl PartialEq for LifetimePolicy
Source§fn eq(&self, other: &LifetimePolicy) -> bool
fn eq(&self, other: &LifetimePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LifetimePolicy
Auto Trait Implementations§
impl Freeze for LifetimePolicy
impl RefUnwindSafe for LifetimePolicy
impl Send for LifetimePolicy
impl Sync for LifetimePolicy
impl Unpin for LifetimePolicy
impl UnsafeUnpin for LifetimePolicy
impl UnwindSafe for LifetimePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.