ArtifactStore

Trait ArtifactStore 

Source
pub trait ArtifactStore: Send + Sync {
    // Required methods
    fn get(
        &self,
        key: &ArtifactKey,
    ) -> Result<Option<Arc<Artifact>>, StoreError>;
    fn put(
        &self,
        key: &ArtifactKey,
        artifact: Arc<Artifact>,
    ) -> Result<(), StoreError>;
    fn contains(&self, key: &ArtifactKey) -> Result<bool, StoreError>;
}
Expand description

Where step results live. Implemented by adapters (memory, Zarr, …).

Required Methods§

Source

fn get(&self, key: &ArtifactKey) -> Result<Option<Arc<Artifact>>, StoreError>

Source

fn put( &self, key: &ArtifactKey, artifact: Arc<Artifact>, ) -> Result<(), StoreError>

Source

fn contains(&self, key: &ArtifactKey) -> Result<bool, StoreError>

Implementors§