fuel_core_compression::ports

Trait EvictorDb

Source
pub trait EvictorDb<T> {
    // Required methods
    fn get_latest_assigned_key(&self) -> Result<Option<RegistryKey>>;
    fn set_latest_assigned_key(&mut self, key: RegistryKey) -> Result<()>;
}
Expand description

Evictor registry to keep track of the latest used key for the type T.

Required Methods§

Implementations on Foreign Types§

Source§

impl<D, T> EvictorDb<T> for &mut D
where D: EvictorDb<T>,

Implementors§