pub struct InMemoryCheckpointer { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Checkpointer for InMemoryCheckpointer
impl Checkpointer for InMemoryCheckpointer
fn save<'life0, 'async_trait>(
&'life0 self,
snapshot: Snapshot,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
key: &'life1 CheckpointKey,
) -> Pin<Box<dyn Future<Output = Result<Option<Snapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn latest<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 WorkflowId,
run_id: &'life2 RunId,
) -> Pin<Box<dyn Future<Output = Result<Option<Snapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn latest<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 WorkflowId,
run_id: &'life2 RunId,
) -> Pin<Box<dyn Future<Output = Result<Option<Snapshot>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Returns the latest snapshot for a
(workflow, run) pair.fn list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow_id: &'life1 WorkflowId,
run_id: &'life2 RunId,
) -> Pin<Box<dyn Future<Output = Result<Vec<CheckpointMeta>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn fork<'life0, 'life1, 'async_trait>(
&'life0 self,
from: &'life1 CheckpointKey,
edits: Vec<(String, Value)>,
) -> Pin<Box<dyn Future<Output = Result<RunId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fork<'life0, 'life1, 'async_trait>(
&'life0 self,
from: &'life1 CheckpointKey,
edits: Vec<(String, Value)>,
) -> Pin<Box<dyn Future<Output = Result<RunId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Create a new run that diverges from an existing checkpoint
with an optional set of state edits applied at the fork point.
Source§impl Clone for InMemoryCheckpointer
impl Clone for InMemoryCheckpointer
Source§fn clone(&self) -> InMemoryCheckpointer
fn clone(&self) -> InMemoryCheckpointer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for InMemoryCheckpointer
impl Default for InMemoryCheckpointer
Source§fn default() -> InMemoryCheckpointer
fn default() -> InMemoryCheckpointer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InMemoryCheckpointer
impl !RefUnwindSafe for InMemoryCheckpointer
impl Send for InMemoryCheckpointer
impl Sync for InMemoryCheckpointer
impl Unpin for InMemoryCheckpointer
impl UnsafeUnpin for InMemoryCheckpointer
impl !UnwindSafe for InMemoryCheckpointer
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