Skip to main content

CacheValue

Trait CacheValue 

Source
pub trait CacheValue:
    Clone
    + Send
    + Sync {
    // Required method
    fn size(&self) -> usize;
}
Expand description

Value type for entries stored in a Cache.

Required Methods§

Source

fn size(&self) -> usize

Size of the value in bytes used for cache memory accounting.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§