Trait BlobIndexer

Source
pub trait BlobIndexer {
    // Required methods
    fn pick_node_for_blob<'life0, 'life1, 'async_trait>(
        &'life0 self,
        blob_id: &'life1 str,
        info_request: BlobInfoRequest,
    ) -> Pin<Box<dyn Future<Output = Result<StorageNodeInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_blob_meta<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        blob_id: &'life1 str,
        user: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<BlobInfo>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn index_blob<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        blob_id: &'life1 str,
        meta: BlobInfo,
        storage_node_id: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_blob<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        blob_id: &'life1 str,
        username: &'life2 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<StorageNodeInfo>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn get_blob_storage_node<'life0, 'life1, 'async_trait>(
        &'life0 self,
        blob_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<StorageNodeInfo>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn clear<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn flush<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn pick_node_for_blob<'life0, 'life1, 'async_trait>( &'life0 self, blob_id: &'life1 str, info_request: BlobInfoRequest, ) -> Pin<Box<dyn Future<Output = Result<StorageNodeInfo>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_blob_meta<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, blob_id: &'life1 str, user: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<BlobInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn index_blob<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, blob_id: &'life1 str, meta: BlobInfo, storage_node_id: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn delete_blob<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, blob_id: &'life1 str, username: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<Option<StorageNodeInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn get_blob_storage_node<'life0, 'life1, 'async_trait>( &'life0 self, blob_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<StorageNodeInfo>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn clear<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn flush<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§