pub struct CacheEntry {
pub data: Bytes,
pub flags: Option<u32>,
}Expand description
A value returned by Memcache::get.
Memcached uses 0 for an untagged value on the wire. The public API maps
that common case to None, so callers only need to handle flags when their
serialization format actually uses them.
Fields§
§data: BytesThe stored bytes, without a copy from the protocol value.
flags: Option<u32>The stored memcached flags, or None when the wire value is 0.
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§impl Debug for CacheEntry
impl Debug for CacheEntry
impl Eq for CacheEntry
Source§impl From<Value> for CacheEntry
impl From<Value> for CacheEntry
Source§impl PartialEq for CacheEntry
impl PartialEq for CacheEntry
impl StructuralPartialEq for CacheEntry
Auto Trait Implementations§
impl !Freeze for CacheEntry
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnsafeUnpin for CacheEntry
impl UnwindSafe for CacheEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.