Trait checkpoint::UncommittedCheckpoint [] [src]

pub trait UncommittedCheckpoint {
    fn get<T: DeserializeOwned + Serialize>(&mut self, key: &str) -> Result<T>;
fn keys(&mut self) -> Result<Vec<String>>;
fn identifier(&mut self) -> Result<&str>;
fn put<T: DeserializeOwned + Serialize>(
        &mut self,
        key: &str,
        value: &T
    ) -> Result<()>;
fn remove(&mut self, key: &str) -> Result<()>; }

The UncommittedCheckpoint trait allows checkpoint data to be modified and retrieved from the storage backing a checkpoint object.

Required Methods

Retrieves the value associated with the provided key from a checkpoint.

Returns a list of keys that are associated with a value in a checkpoint.

Returns a checkpoint's identifier.

Stores the provided value in a checkpoint and associates it with the provided key.

Removes the value associated with the provided key from a checkpoint.

Implementors