pub struct InMemoryPersistenceStore { /* private fields */ }Expand description
In-memory reference adapter for local testing and contract validation.
Implementations§
Trait Implementations§
Source§impl Clone for InMemoryPersistenceStore
impl Clone for InMemoryPersistenceStore
Source§fn clone(&self) -> InMemoryPersistenceStore
fn clone(&self) -> InMemoryPersistenceStore
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InMemoryPersistenceStore
impl Debug for InMemoryPersistenceStore
Source§impl Default for InMemoryPersistenceStore
impl Default for InMemoryPersistenceStore
Source§fn default() -> InMemoryPersistenceStore
fn default() -> InMemoryPersistenceStore
Returns the “default value” for a type. Read more
Source§impl PersistenceStore for InMemoryPersistenceStore
impl PersistenceStore for InMemoryPersistenceStore
fn append<'life0, 'async_trait>(
&'life0 self,
envelope: PersistenceEnvelope,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
trace_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<PersistedTrace>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
trace_id: &'life1 str,
resume_from_step: u64,
) -> Pin<Box<dyn Future<Output = Result<ResumeCursor>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
trace_id: &'life1 str,
completion: CompletionState,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save_intervention<'life0, 'life1, 'async_trait>(
&'life0 self,
trace_id: &'life1 str,
intervention: Intervention,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for InMemoryPersistenceStore
impl !RefUnwindSafe for InMemoryPersistenceStore
impl Send for InMemoryPersistenceStore
impl Sync for InMemoryPersistenceStore
impl Unpin for InMemoryPersistenceStore
impl UnsafeUnpin for InMemoryPersistenceStore
impl !UnwindSafe for InMemoryPersistenceStore
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