Trait Entry

Source
pub trait Entry {
    type Key: EntryKey + Send + Sync;
    type Value: EntryValue + Send + Sync;

    // Required methods
    fn key(&self) -> Self::Key;
    fn value(&self) -> Self::Value;
}
Expand description

Entry trait that will be used to be able to fetch and cache data as the Key

Required Associated Types§

Required Methods§

Source

fn key(&self) -> Self::Key

Source

fn value(&self) -> Self::Value

Implementors§