pub struct MemoryFlowStore { /* private fields */ }Expand description
An in-memory FlowStore 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 MemoryFlowStore
impl Default for MemoryFlowStore
Source§impl FlowStore for MemoryFlowStore
impl FlowStore for MemoryFlowStore
Source§fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
definition: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
name: &'life1 str,
definition: &'life2 Value,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Persist a flow definition under the given name (upsert semantics).
Source§fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Value>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Load a flow definition by name. Read more
Auto Trait Implementations§
impl Freeze for MemoryFlowStore
impl !RefUnwindSafe for MemoryFlowStore
impl Send for MemoryFlowStore
impl Sync for MemoryFlowStore
impl Unpin for MemoryFlowStore
impl UnsafeUnpin for MemoryFlowStore
impl !UnwindSafe for MemoryFlowStore
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