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<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
NullStore: 'async_trait,
fn store_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 CheckpointID,
_checkpoint_data: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
NullStore: '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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
NullStore: 'async_trait,
fn read_checkpoint<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: &'life1 CheckpointID,
) -> Pin<Box<dyn Future<Output = Result<Option<StoredCheckpoint>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
NullStore: '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