pub struct ValueBytes {
pub key: Bytes,
pub flags: u32,
pub data: Bytes,
pub cas: Option<u64>,
}Expand description
A single value from a GET response, using zero-copy Bytes references.
Fields§
§key: Bytes§flags: u32§data: Bytes§cas: Option<u64>CAS unique token, present when the response is from a gets command.
Trait Implementations§
Source§impl Clone for ValueBytes
impl Clone for ValueBytes
Source§fn clone(&self) -> ValueBytes
fn clone(&self) -> ValueBytes
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 ValueBytes
impl Debug for ValueBytes
Source§impl PartialEq for ValueBytes
impl PartialEq for ValueBytes
impl Eq for ValueBytes
impl StructuralPartialEq for ValueBytes
Auto Trait Implementations§
impl !Freeze for ValueBytes
impl RefUnwindSafe for ValueBytes
impl Send for ValueBytes
impl Sync for ValueBytes
impl Unpin for ValueBytes
impl UnsafeUnpin for ValueBytes
impl UnwindSafe for ValueBytes
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