pub struct CacheEntry {
pub address: GroupAddress,
pub value: Vec<u8>,
pub source: Option<String>,
pub updated_at: Instant,
pub accessed_at: Instant,
pub update_count: u64,
pub access_count: u64,
}Expand description
A single cached group value entry.
Fields§
§address: GroupAddressGroup address this entry belongs to.
value: Vec<u8>Raw value bytes.
source: Option<String>Source address that last wrote this value (if known).
updated_at: InstantTimestamp when this entry was last written/updated.
accessed_at: InstantTimestamp when this entry was last accessed (read).
update_count: u64Number of times this entry has been updated.
access_count: u64Number of times this entry has been accessed.
Implementations§
Trait Implementations§
Source§impl Clone for CacheEntry
impl Clone for CacheEntry
Source§fn clone(&self) -> CacheEntry
fn clone(&self) -> CacheEntry
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 moreAuto 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