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;
    fn put_artifact_bytes<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        artifact_ref: &'life1 str,
        descriptor: &'life2 str,
        bytes: &'life3 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<(), ArtifactStoreError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             Self: 'async_trait;
    fn get_artifact_bytes<'life0, 'life1, 'async_trait>(
        &'life0 self,
        artifact_ref: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, 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,

Source

fn put_artifact_bytes<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, artifact_ref: &'life1 str, descriptor: &'life2 str, bytes: &'life3 [u8], ) -> Pin<Box<dyn Future<Output = Result<(), ArtifactStoreError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, Self: 'async_trait,

Source

fn get_artifact_bytes<'life0, 'life1, 'async_trait>( &'life0 self, artifact_ref: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, 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§