pub struct LifecycleUpdate {
pub ttl_seconds: Option<u32>,
pub idle_timeout_seconds: Option<u32>,
pub on_idle: Option<IdleAction>,
}Expand description
A partial lifecycle update applied by SetLifecycle (CORE-60).
None fields are left unchanged, so each knob can be adjusted
independently.
Fields§
§ttl_seconds: Option<u32>Replace the hard maximum lifetime: expire this many seconds from
now (Some(0) removes the limit).
idle_timeout_seconds: Option<u32>Replace the idle timeout (Some(0) disables idle detection).
on_idle: Option<IdleAction>Replace the idle policy.
Trait Implementations§
Source§impl Clone for LifecycleUpdate
impl Clone for LifecycleUpdate
impl Copy for LifecycleUpdate
Source§impl Debug for LifecycleUpdate
impl Debug for LifecycleUpdate
Source§impl Default for LifecycleUpdate
impl Default for LifecycleUpdate
impl Eq for LifecycleUpdate
Source§impl PartialEq for LifecycleUpdate
impl PartialEq for LifecycleUpdate
impl StructuralPartialEq for LifecycleUpdate
Auto Trait Implementations§
impl Freeze for LifecycleUpdate
impl RefUnwindSafe for LifecycleUpdate
impl Send for LifecycleUpdate
impl Sync for LifecycleUpdate
impl Unpin for LifecycleUpdate
impl UnsafeUnpin for LifecycleUpdate
impl UnwindSafe for LifecycleUpdate
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.