pub struct FileCheckpointer<S: StateSchema> { /* private fields */ }Expand description
File-based checkpointer for persistent storage
Implementations§
Source§impl<S: StateSchema> FileCheckpointer<S>
impl<S: StateSchema> FileCheckpointer<S>
pub fn new(directory: impl Into<PathBuf>) -> GraphResult<Self>
Trait Implementations§
Source§impl<S: StateSchema> Checkpointer<S> for FileCheckpointer<S>
impl<S: StateSchema> Checkpointer<S> for FileCheckpointer<S>
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
state: &'life1 S,
) -> Pin<Box<dyn Future<Output = GraphResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = GraphResult<S>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = GraphResult<Vec<String>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn delete<'life0, 'life1, 'async_trait>(
&'life0 self,
checkpoint_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = GraphResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for FileCheckpointer<S>
impl<S> RefUnwindSafe for FileCheckpointer<S>where
S: RefUnwindSafe,
impl<S> Send for FileCheckpointer<S>
impl<S> Sync for FileCheckpointer<S>
impl<S> Unpin for FileCheckpointer<S>where
S: Unpin,
impl<S> UnsafeUnpin for FileCheckpointer<S>
impl<S> UnwindSafe for FileCheckpointer<S>where
S: UnwindSafe,
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