pub trait Storage: Send + Sync + Debug {
    // Required methods
    fn artifact_put<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        version: &'life1 ArtifactId,
        data: &'life2 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn artifact_get<'life0, 'life1, 'async_trait>(
        &'life0 self,
        version: &'life1 ArtifactId
    ) -> Pin<Box<dyn Future<Output = Result<ArtifactData, StorageError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Storage trait.

Required Methods§

source

fn artifact_put<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, version: &'life1 ArtifactId, data: &'life2 [u8] ) -> Pin<Box<dyn Future<Output = Result<(), StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Put an artifact into storage.

source

fn artifact_get<'life0, 'life1, 'async_trait>( &'life0 self, version: &'life1 ArtifactId ) -> Pin<Box<dyn Future<Output = Result<ArtifactData, StorageError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get an artifact from storage.

Implementors§