Skip to main content

WriteEnrichmentStrategy

Trait WriteEnrichmentStrategy 

Source
pub trait WriteEnrichmentStrategy: Send + Sync {
    // Required method
    fn persist<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tree: &'life1 RepositoryTree,
        items: &'life2 mut [Row],
        mode: WriteMode,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;

    // Provided methods
    fn use_transaction(&self) -> bool { ... }
    fn persist_bulk<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tree: &'life1 RepositoryTree,
        items: &'life2 mut [Row],
        mode: WriteMode,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn resolve_lookups<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        _tree: &'life1 RepositoryTree,
        _items: &'life2 mut [Row],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn persist<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tree: &'life1 RepositoryTree, items: &'life2 mut [Row], mode: WriteMode, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Provided Methods§

Source

fn use_transaction(&self) -> bool

Source

fn persist_bulk<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tree: &'life1 RepositoryTree, items: &'life2 mut [Row], mode: WriteMode, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn resolve_lookups<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, _tree: &'life1 RepositoryTree, _items: &'life2 mut [Row], ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§