RawCache

Trait RawCache 

Source
pub trait RawCache: Send + Sync {
    // Required methods
    fn capacity(&self) -> usize;
    fn clone_as_raw_cache(&self) -> Box<dyn RawCache>;
    fn async_reader<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Unpin + Send + Sync + AsyncReadWithSeek>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sync_reader(
        &self,
    ) -> BuckyResult<Box<dyn SyncReadWithSeek + Send + Sync>>;
    fn async_writer<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Unpin + Send + Sync + AsyncWriteWithSeek>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn sync_writer(&self) -> BuckyResult<Box<dyn SyncWriteWithSeek>>;
}

Required Methods§

Source

fn capacity(&self) -> usize

Source

fn clone_as_raw_cache(&self) -> Box<dyn RawCache>

Source

fn async_reader<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Unpin + Send + Sync + AsyncReadWithSeek>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sync_reader(&self) -> BuckyResult<Box<dyn SyncReadWithSeek + Send + Sync>>

Source

fn async_writer<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = BuckyResult<Box<dyn Unpin + Send + Sync + AsyncWriteWithSeek>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn sync_writer(&self) -> BuckyResult<Box<dyn SyncWriteWithSeek>>

Implementors§