pub enum NoticeLifetime {
KeepRemaining,
Refresh,
Extend,
}Expand description
Expiry policy when a matching key is coalesced successfully.
Variants§
KeepRemaining
Refresh
Use the incoming duration, which can shorten the remaining lifetime.
Extend
Add the incoming duration, saturating at finite f64::MAX on overflow.
Trait Implementations§
Source§impl Clone for NoticeLifetime
impl Clone for NoticeLifetime
Source§fn clone(&self) -> NoticeLifetime
fn clone(&self) -> NoticeLifetime
Returns a duplicate of the value. Read more
1.0.0 · 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 NoticeLifetime
impl Debug for NoticeLifetime
Source§impl PartialEq for NoticeLifetime
impl PartialEq for NoticeLifetime
impl Copy for NoticeLifetime
impl Eq for NoticeLifetime
impl StructuralPartialEq for NoticeLifetime
Auto Trait Implementations§
impl Freeze for NoticeLifetime
impl RefUnwindSafe for NoticeLifetime
impl Send for NoticeLifetime
impl Sync for NoticeLifetime
impl Unpin for NoticeLifetime
impl UnwindSafe for NoticeLifetime
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