Trait NamedObjectRelationCache

Source
pub trait NamedObjectRelationCache: Send + Sync {
    // Required methods
    fn put<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 NamedObjectRelationCachePutRequest,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        req: &'life1 NamedObjectRelationCacheGetRequest,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<NamedObjectRelationCacheData>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn put<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 NamedObjectRelationCachePutRequest, ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get<'life0, 'life1, 'async_trait>( &'life0 self, req: &'life1 NamedObjectRelationCacheGetRequest, ) -> Pin<Box<dyn Future<Output = BuckyResult<Option<NamedObjectRelationCacheData>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§