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
fn get<T: DeserializeOwned + Serialize>(&mut self, key: &str) -> Result<T>
Retrieves the value associated with the provided key from a checkpoint.
fn keys(&mut self) -> Result<Vec<String>>
Returns a list of keys that are associated with a value in a checkpoint.
fn identifier(&mut self) -> Result<&str>
Returns a checkpoint's identifier.
fn put<T: DeserializeOwned + Serialize>(
&mut self,
key: &str,
value: &T
) -> Result<()>
&mut self,
key: &str,
value: &T
) -> Result<()>
Stores the provided value in a checkpoint and associates it with the provided key.
fn remove(&mut self, key: &str) -> Result<()>
Removes the value associated with the provided key from a checkpoint.