pub struct FileCheckpointer { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: StateSchema> Checkpointer<S> for FileCheckpointer
impl<S: StateSchema> Checkpointer<S> for FileCheckpointer
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint: &'life1 Checkpoint<S>,
) -> Pin<Box<dyn Future<Output = Result<(), WesichainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Clone for FileCheckpointer
impl Clone for FileCheckpointer
Source§fn clone(&self) -> FileCheckpointer
fn clone(&self) -> FileCheckpointer
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 FileCheckpointer
impl Debug for FileCheckpointer
Source§impl<S: StateSchema> HistoryCheckpointer<S> for FileCheckpointer
impl<S: StateSchema> HistoryCheckpointer<S> for FileCheckpointer
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: '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,
Self: '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,
Self: 'async_trait,
Fork execution from a historical checkpoint. Read more
Auto Trait Implementations§
impl Freeze for FileCheckpointer
impl RefUnwindSafe for FileCheckpointer
impl Send for FileCheckpointer
impl Sync for FileCheckpointer
impl Unpin for FileCheckpointer
impl UnsafeUnpin for FileCheckpointer
impl UnwindSafe for FileCheckpointer
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