pub struct SetHeader<'a> {
pub key: &'a [u8],
pub ex: Option<u64>,
pub px: Option<u64>,
pub nx: bool,
pub xx: bool,
/* private fields */
}Expand description
Parsed SET command header (without the value).
Fields§
§key: &'a [u8]The key for this SET operation.
ex: Option<u64>EX option: expire time in seconds.
px: Option<u64>PX option: expire time in milliseconds.
nx: boolNX option: only set if key doesn’t exist.
xx: boolXX option: only set if key exists.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SetHeader<'a>
impl<'a> RefUnwindSafe for SetHeader<'a>
impl<'a> Send for SetHeader<'a>
impl<'a> Sync for SetHeader<'a>
impl<'a> Unpin for SetHeader<'a>
impl<'a> UnsafeUnpin for SetHeader<'a>
impl<'a> UnwindSafe for SetHeader<'a>
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