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: i64Expiration time of this key, as a Unix timestamp.
last_accessed: u64Last time this key was accessed, in seconds.
cas: u64CAS identifier.
fetched: boolWhether or not this key has ever been fetched.
class_id: u32Slab class ID.
size: u32Size, in bytes.
Trait Implementations§
Source§impl Clone for KeyMetadata
impl Clone for KeyMetadata
Source§fn clone(&self) -> KeyMetadata
fn clone(&self) -> KeyMetadata
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 KeyMetadata
impl Debug for KeyMetadata
Source§impl PartialEq for KeyMetadata
impl PartialEq for KeyMetadata
impl StructuralPartialEq for KeyMetadata
Auto Trait Implementations§
impl Freeze for KeyMetadata
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