Trait foyer_storage::StorageWriter
source · pub trait StorageWriter<K, V>: Send + Syncwhere
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§
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
Object Safety§
This trait is not object safe.