CloudMetadataBackend

Trait CloudMetadataBackend 

Source
pub trait CloudMetadataBackend: Send + Sync {
    // Required methods
    fn get_item<'life0, 'life1, 'async_trait>(
        &'life0 self,
        key: &'life1 CloudItemKey,
    ) -> Pin<Box<dyn Future<Output = BackendResult<CloudItem>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn list_children<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        parent: &'life1 CloudItemKey,
        cursor: Option<&'life2 PageCursor>,
    ) -> Pin<Box<dyn Future<Output = BackendResult<CloudItemPage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn changes_since<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        scope: &'life1 CloudScope,
        cursor: Option<&'life2 ChangeCursor>,
    ) -> Pin<Box<dyn Future<Output = BackendResult<ChangePage>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Product-owned metadata, enumeration, and change-discovery adapter.

Required Methods§

Source

fn get_item<'life0, 'life1, 'async_trait>( &'life0 self, key: &'life1 CloudItemKey, ) -> Pin<Box<dyn Future<Output = BackendResult<CloudItem>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Loads one item by stable scoped identity.

Source

fn list_children<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, parent: &'life1 CloudItemKey, cursor: Option<&'life2 PageCursor>, ) -> Pin<Box<dyn Future<Output = BackendResult<CloudItemPage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Lists one directory page. A page cursor is valid only for the same parent enumeration.

Source

fn changes_since<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, scope: &'life1 CloudScope, cursor: Option<&'life2 ChangeCursor>, ) -> Pin<Box<dyn Future<Output = BackendResult<ChangePage>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Loads the next anchored change batch or an explicit reset result.

Implementors§