pub struct NullStore;Expand description
A no-op checkpoint store for when checkpoint storage is disabled.
Trait Implementations§
Source§impl CheckpointStore for NullStore
impl CheckpointStore for NullStore
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 NullStore
impl RefUnwindSafe for NullStore
impl Send for NullStore
impl Sync for NullStore
impl Unpin for NullStore
impl UnsafeUnpin for NullStore
impl UnwindSafe for NullStore
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