Skip to main content

LashlangArtifactStore

Trait LashlangArtifactStore 

Source
pub trait LashlangArtifactStore: Send + Sync {
    // Required methods
    fn put_module_artifact<'life0, 'life1, 'async_trait>(
        &'life0 self,
        artifact: &'life1 ModuleArtifact,
    ) -> Pin<Box<dyn Future<Output = Result<(), ArtifactStoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
    fn get_module_artifact<'life0, 'life1, 'async_trait>(
        &'life0 self,
        module_ref: &'life1 ModuleRef,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Arc<ModuleArtifact>>, ArtifactStoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;

    // Provided method
    fn durability_tier(&self) -> DurabilityTier { ... }
}

Required Methods§

Source

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

Source

fn get_module_artifact<'life0, 'life1, 'async_trait>( &'life0 self, module_ref: &'life1 ModuleRef, ) -> Pin<Box<dyn Future<Output = Result<Option<Arc<ModuleArtifact>>, ArtifactStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Provided Methods§

Source

fn durability_tier(&self) -> DurabilityTier

Durability tier this artifact store provides; defaults to DurabilityTier::Inline.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§