pub struct MemoryExecutionStore { /* private fields */ }Expand description
An in-memory ExecutionStore backed by a HashMap under an RwLock.
Suitable for testing and short-lived processes. Data is lost on restart.
Implementations§
Trait Implementations§
Source§impl Default for MemoryExecutionStore
impl Default for MemoryExecutionStore
Source§impl ExecutionStore for MemoryExecutionStore
impl ExecutionStore for MemoryExecutionStore
Source§fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
result: &'life1 FlowResult,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
result: &'life1 FlowResult,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Persist a completed execution result, keyed by
result.execution_id.Source§fn load<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<FlowResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<Option<FlowResult>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Load a previously saved result by execution ID. Read more
Auto Trait Implementations§
impl Freeze for MemoryExecutionStore
impl !RefUnwindSafe for MemoryExecutionStore
impl Send for MemoryExecutionStore
impl Sync for MemoryExecutionStore
impl Unpin for MemoryExecutionStore
impl UnsafeUnpin for MemoryExecutionStore
impl !UnwindSafe for MemoryExecutionStore
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