Trait imessage_database::tables::table::Cacheable
source · pub trait Cacheable {
type K;
type V;
// Required method
fn cache(db: &Connection) -> Result<HashMap<Self::K, Self::V>, TableError>;
}Expand description
Defines behavior for table data that can be cached in memory
Required Associated Types§
Required Methods§
fn cache(db: &Connection) -> Result<HashMap<Self::K, Self::V>, TableError>
Object Safety§
This trait is not object safe.