pub struct FilesystemStore { /* private fields */ }Expand description
Filesystem implementation of CheckpointStore trait.
Stores checkpoints as JSON files in a directory.
Implementations§
Trait Implementations§
Source§impl CheckpointStore for FilesystemStore
impl CheckpointStore for FilesystemStore
Source§fn store_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointID,
checkpoint_data: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn store_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointID,
checkpoint_data: String,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Store a checkpoint in the storage backend.
Source§fn read_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointID,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredCheckpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 CheckpointID,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredCheckpoint>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read a checkpoint from the storage backend. Read more
Auto Trait Implementations§
impl Freeze for FilesystemStore
impl RefUnwindSafe for FilesystemStore
impl Send for FilesystemStore
impl Sync for FilesystemStore
impl Unpin for FilesystemStore
impl UnsafeUnpin for FilesystemStore
impl UnwindSafe for FilesystemStore
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