pub struct InMemoryCheckpointer<S>where
S: StateSchema,{ /* private fields */ }Trait Implementations§
Source§impl<S> Checkpointer<S> for InMemoryCheckpointer<S>where
S: StateSchema,
impl<S> Checkpointer<S> for InMemoryCheckpointer<S>where
S: StateSchema,
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint<S>,
) -> Pin<Box<dyn Future<Output = Result<(), WesichainError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCheckpointer<S>: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Checkpoint<S>>, WesichainError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCheckpointer<S>: 'async_trait,
Source§impl<S> Clone for InMemoryCheckpointer<S>where
S: Clone + StateSchema,
impl<S> Clone for InMemoryCheckpointer<S>where
S: Clone + StateSchema,
Source§fn clone(&self) -> InMemoryCheckpointer<S>
fn clone(&self) -> InMemoryCheckpointer<S>
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<S> Default for InMemoryCheckpointer<S>where
S: Default + StateSchema,
impl<S> Default for InMemoryCheckpointer<S>where
S: Default + StateSchema,
Source§fn default() -> InMemoryCheckpointer<S>
fn default() -> InMemoryCheckpointer<S>
Returns the “default value” for a type. Read more
Source§impl<S> HistoryCheckpointer<S> for InMemoryCheckpointer<S>where
S: StateSchema,
impl<S> HistoryCheckpointer<S> for InMemoryCheckpointer<S>where
S: StateSchema,
fn list_checkpoints<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<CheckpointMetadata>, WesichainError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCheckpointer<S>: 'async_trait,
Source§fn fork<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
at_seq: u64,
) -> Pin<Box<dyn Future<Output = Result<String, WesichainError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCheckpointer<S>: 'async_trait,
fn fork<'life0, 'life1, 'async_trait>(
&'life0 self,
thread_id: &'life1 str,
at_seq: u64,
) -> Pin<Box<dyn Future<Output = Result<String, WesichainError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
InMemoryCheckpointer<S>: 'async_trait,
Fork execution from a historical checkpoint. Read more
Auto Trait Implementations§
impl<S> Freeze for InMemoryCheckpointer<S>
impl<S> RefUnwindSafe for InMemoryCheckpointer<S>
impl<S> Send for InMemoryCheckpointer<S>
impl<S> Sync for InMemoryCheckpointer<S>
impl<S> Unpin for InMemoryCheckpointer<S>
impl<S> UnsafeUnpin for InMemoryCheckpointer<S>
impl<S> UnwindSafe for InMemoryCheckpointer<S>
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