pub struct CachedDataEntry {
pub rows: Vec<DataRow>,
pub cached_at: Instant,
pub size_bytes: usize,
pub access_count: u64,
pub last_accessed: Instant,
}Expand description
Cached data entry with metadata
Fields§
§rows: Vec<DataRow>The actual data rows
cached_at: InstantWhen this entry was cached
size_bytes: usizeSize in bytes (approximate)
access_count: u64Access count for LRU eviction
last_accessed: InstantLast access time
Trait Implementations§
Source§impl Clone for CachedDataEntry
impl Clone for CachedDataEntry
Source§fn clone(&self) -> CachedDataEntry
fn clone(&self) -> CachedDataEntry
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 moreAuto Trait Implementations§
impl Freeze for CachedDataEntry
impl RefUnwindSafe for CachedDataEntry
impl Send for CachedDataEntry
impl Sync for CachedDataEntry
impl Unpin for CachedDataEntry
impl UnsafeUnpin for CachedDataEntry
impl UnwindSafe for CachedDataEntry
Blanket Implementations§
impl<T> Allocation for T
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