pub enum HExpireCond {
Always,
Nx,
Xx,
Gt,
Lt,
}Expand description
Condition flags for HEXPIRE (NX/XX/GT/LT; at most one).
Variants§
Always
Unconditional.
Nx
Only when the field has no TTL.
Xx
Only when the field already has a TTL.
Gt
Only when the new deadline is later than the current one (no TTL counts as infinitely late — GT never replaces it).
Lt
Only when the new deadline is earlier (no TTL = always).
Trait Implementations§
Source§impl Clone for HExpireCond
impl Clone for HExpireCond
Source§fn clone(&self) -> HExpireCond
fn clone(&self) -> HExpireCond
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 HExpireCond
Source§impl Debug for HExpireCond
impl Debug for HExpireCond
Source§impl Default for HExpireCond
impl Default for HExpireCond
Source§fn default() -> HExpireCond
fn default() -> HExpireCond
Returns the “default value” for a type. Read more
impl Eq for HExpireCond
Source§impl PartialEq for HExpireCond
impl PartialEq for HExpireCond
Source§fn eq(&self, other: &HExpireCond) -> bool
fn eq(&self, other: &HExpireCond) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HExpireCond
Auto Trait Implementations§
impl Freeze for HExpireCond
impl RefUnwindSafe for HExpireCond
impl Send for HExpireCond
impl Sync for HExpireCond
impl Unpin for HExpireCond
impl UnsafeUnpin for HExpireCond
impl UnwindSafe for HExpireCond
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