Struct async_memcached::KeyMetadata
source · pub struct KeyMetadata {
pub key: Vec<u8>,
pub expiration: i64,
pub last_accessed: u64,
pub cas: u64,
pub fetched: bool,
pub class_id: u32,
pub size: u32,
}
Expand description
Metadata for a given key in a metadump operation.
Fields§
§key: Vec<u8>
The key.
expiration: i64
Expiration time of this key, as a Unix timestamp.
last_accessed: u64
Last time this key was accessed, in seconds.
cas: u64
CAS identifier.
fetched: bool
Whether or not this key has ever been fetched.
class_id: u32
Slab class ID.
size: u32
Size, in bytes.
Trait Implementations§
source§impl Clone for KeyMetadata
impl Clone for KeyMetadata
source§fn clone(&self) -> KeyMetadata
fn clone(&self) -> KeyMetadata
Returns a copy 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 KeyMetadata
impl Debug for KeyMetadata
source§impl PartialEq<KeyMetadata> for KeyMetadata
impl PartialEq<KeyMetadata> for KeyMetadata
source§fn eq(&self, other: &KeyMetadata) -> bool
fn eq(&self, other: &KeyMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for KeyMetadata
Auto Trait Implementations§
impl RefUnwindSafe for KeyMetadata
impl Send for KeyMetadata
impl Sync for KeyMetadata
impl Unpin for KeyMetadata
impl UnwindSafe for KeyMetadata
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