Trait foyer_storage::StorageWriter

source ·
pub trait StorageWriter<K, V>: Send + Sync
where K: StorageKey, V: StorageValue,
{ // Required methods fn key(&self) -> &K; fn judge(&mut self) -> bool; fn force(&mut self); fn compression(&self) -> Compression; fn set_compression(&mut self, compression: Compression); fn finish<AV>( self, value: AV ) -> impl Future<Output = Result<Option<CachedEntry<K, V>>>> + Send where AV: Into<Arc<V>> + Send + 'static; }

Required Methods§

source

fn key(&self) -> &K

source

fn judge(&mut self) -> bool

source

fn force(&mut self)

source

fn compression(&self) -> Compression

source

fn set_compression(&mut self, compression: Compression)

source

fn finish<AV>( self, value: AV ) -> impl Future<Output = Result<Option<CachedEntry<K, V>>>> + Send
where AV: Into<Arc<V>> + Send + 'static,

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<K, V> StorageWriter<K, V> for StoreWriter<K, V>
where K: StorageKey, V: StorageValue,