pub struct WriteRequest {
pub value_key: String,
pub frame: Frame,
pub ttl_ms: u64,
}Expand description
One complete-frame write: a single native SET value_key frame PX ttl_ms.
Fields§
§value_key: StringThe stored value key to SET.
frame: FrameThe complete frame, stamped by the cache; store it exactly.
ttl_ms: u64Positive milliseconds no greater than 365 days.
Trait Implementations§
Source§impl Clone for WriteRequest
impl Clone for WriteRequest
Source§fn clone(&self) -> WriteRequest
fn clone(&self) -> WriteRequest
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 moreSource§impl Debug for WriteRequest
impl Debug for WriteRequest
impl Eq for WriteRequest
Source§impl PartialEq for WriteRequest
impl PartialEq for WriteRequest
Source§fn eq(&self, other: &WriteRequest) -> bool
fn eq(&self, other: &WriteRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WriteRequest
Auto Trait Implementations§
impl Freeze for WriteRequest
impl RefUnwindSafe for WriteRequest
impl Send for WriteRequest
impl Sync for WriteRequest
impl Unpin for WriteRequest
impl UnsafeUnpin for WriteRequest
impl UnwindSafe for WriteRequest
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.