pub struct MemoryArtifactStore { /* private fields */ }Expand description
In-memory artifact store for local use and tests.
Trait Implementations§
Source§impl ArtifactStore for MemoryArtifactStore
impl ArtifactStore for MemoryArtifactStore
Source§fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execution_id: &'life1 str,
value: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<ArtifactRef, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn put<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execution_id: &'life1 str,
value: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<ArtifactRef, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Stores one JSON value and returns its durable reference.
Source§fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execution_id: &'life1 str,
artifact_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn get<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
execution_id: &'life1 str,
artifact_id: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Loads one JSON value when it belongs to the supplied execution.
Auto Trait Implementations§
impl !Freeze for MemoryArtifactStore
impl !RefUnwindSafe for MemoryArtifactStore
impl Send for MemoryArtifactStore
impl Sync for MemoryArtifactStore
impl Unpin for MemoryArtifactStore
impl UnsafeUnpin for MemoryArtifactStore
impl UnwindSafe for MemoryArtifactStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more