Struct checkpoint::storage::MemoryStorage
[−]
[src]
pub struct MemoryStorage { /* fields omitted */ }Provides in-memory checkpoint storage.
Methods
impl MemoryStorage[src]
pub fn new() -> Result<GuardWrapper<Self>>[src]
Creates a new MemoryStorage wrapped in a
GuardWrapper.
Trait Implementations
impl Debug for MemoryStorage[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Storage for MemoryStorage[src]
type Committed = Committed
The type representing committed checkpoints.
type Uncommitted = Uncommitted
The type representing uncommitted checkpoints.
fn create_checkpoint(&mut self, identifier: &str) -> Result<Self::Uncommitted>[src]
Creates a new checkpoint with the specified identifier. Read more
fn commit_checkpoint(
&mut self,
uncommitted: Self::Uncommitted
) -> Result<Self::Committed>[src]
&mut self,
uncommitted: Self::Uncommitted
) -> Result<Self::Committed>
Commits an uncommitted checkpoint, permanently saving its data to the underlying storage medium. Read more
fn load_checkpoint(&mut self, identifier: &str) -> Result<Self::Committed>[src]
Loads the committed checkpoint associated with the provided identifier, allowing its data to be retrieved. Read more
fn remove_checkpoint(&mut self, identifier: &str) -> Result<()>[src]
Removes the committed checkpoint associated with the provided identifier. Read more
fn checkpoint_identifiers(&mut self) -> Result<Vec<String>>[src]
Returns a list of all committed checkpoint identifiers in the underlying storage medium.