pub struct CacheResidency {
pub key: KvBlockKey,
pub worker_id: String,
pub tier: CacheTier,
pub bytes: u64,
pub last_access_ms: u64,
pub ref_count: u32,
pub pinned: bool,
}Fields§
§key: KvBlockKey§worker_id: String§tier: CacheTier§bytes: u64§last_access_ms: u64§ref_count: u32§pinned: boolImplementations§
Trait Implementations§
Source§impl Clone for CacheResidency
impl Clone for CacheResidency
Source§fn clone(&self) -> CacheResidency
fn clone(&self) -> CacheResidency
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 CacheResidency
impl Debug for CacheResidency
Source§impl<'de> Deserialize<'de> for CacheResidency
impl<'de> Deserialize<'de> for CacheResidency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CacheResidency
Source§impl PartialEq for CacheResidency
impl PartialEq for CacheResidency
Source§fn eq(&self, other: &CacheResidency) -> bool
fn eq(&self, other: &CacheResidency) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CacheResidency
impl Serialize for CacheResidency
impl StructuralPartialEq for CacheResidency
Auto Trait Implementations§
impl Freeze for CacheResidency
impl RefUnwindSafe for CacheResidency
impl Send for CacheResidency
impl Sync for CacheResidency
impl Unpin for CacheResidency
impl UnsafeUnpin for CacheResidency
impl UnwindSafe for CacheResidency
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