Trait cyfs_lib::NamedObjectCache
source · [−]pub trait NamedObjectCache: Sync + Send {
fn put_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCachePutObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCachePutObjectResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn get_object_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheGetObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<NamedObjectCacheObjectRawData>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheDeleteObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheDeleteObjectResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn exists_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheExistsObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheExistsObjectResponse>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn stat<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheStat>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheGetObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<NamedObjectCacheObjectData>>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
{ ... }
}
Required Methods
sourcefn put_object<'life0, 'life1, 'async_trait>(
fn put_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCachePutObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCachePutObjectResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn get_object_raw<'life0, 'life1, 'async_trait>(
fn get_object_raw<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheGetObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<NamedObjectCacheObjectRawData>>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn delete_object<'life0, 'life1, 'async_trait>(
fn delete_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheDeleteObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheDeleteObjectResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn exists_object<'life0, 'life1, 'async_trait>(
fn exists_object<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 NamedObjectCacheExistsObjectRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheExistsObjectResponse>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
sourcefn stat<'life0, 'async_trait>(
fn stat<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = BuckyResult<NamedObjectCacheStat>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Provided Methods
sourcefn get_object<'life0, 'life1, 'async_trait>(