pub enum FieldExpireCondition {
Always,
IfNoTtl,
IfTtl,
IfGreater,
IfLess,
}Expand description
When HEXPIRE and its siblings may change a field’s TTL. A field without a TTL counts
as an infinite TTL for IfGreater and IfLess.
Variants§
Always
Always set the TTL.
IfNoTtl
Only when the field has no TTL (NX).
IfTtl
Only when the field already has a TTL (XX).
IfGreater
Only when the new deadline is later (GT).
IfLess
Only when the new deadline is earlier (LT).
Trait Implementations§
Source§impl Clone for FieldExpireCondition
impl Clone for FieldExpireCondition
impl Copy for FieldExpireCondition
Source§impl Debug for FieldExpireCondition
impl Debug for FieldExpireCondition
Source§impl Default for FieldExpireCondition
impl Default for FieldExpireCondition
impl Eq for FieldExpireCondition
Source§impl PartialEq for FieldExpireCondition
impl PartialEq for FieldExpireCondition
impl StructuralPartialEq for FieldExpireCondition
Auto Trait Implementations§
impl Freeze for FieldExpireCondition
impl RefUnwindSafe for FieldExpireCondition
impl Send for FieldExpireCondition
impl Sync for FieldExpireCondition
impl Unpin for FieldExpireCondition
impl UnsafeUnpin for FieldExpireCondition
impl UnwindSafe for FieldExpireCondition
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