Struct checkpoint::wrappers::HmacWrapper
[−]
[src]
pub struct HmacWrapper<S: Storage> { /* fields omitted */ }
Adds HMAC verification to checkpoint data.
Currently the Sha256 checksum algorithm is used.
Methods
impl<S: Storage> HmacWrapper<S>
[src]
Trait Implementations
impl<S: Debug + Storage> Debug for HmacWrapper<S>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<S: Storage> Storage for HmacWrapper<S>
[src]
type Committed = Committed<S::Committed>
The type representing committed checkpoints.
type Uncommitted = Uncommitted<S::Uncommitted>
The type representing uncommitted checkpoints.
fn create_checkpoint(
&mut self,
identifier: &str
) -> Result<Self::Uncommitted, Error>
[src]
&mut self,
identifier: &str
) -> Result<Self::Uncommitted, Error>
Creates a new checkpoint with the specified identifier. Read more
fn commit_checkpoint(
&mut self,
uncommitted: Self::Uncommitted
) -> Result<Self::Committed, Error>
[src]
&mut self,
uncommitted: Self::Uncommitted
) -> Result<Self::Committed, Error>
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, Error>
[src]
&mut self,
identifier: &str
) -> Result<Self::Committed, Error>
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<(), Error>
[src]
Removes the committed checkpoint associated with the provided identifier. Read more
fn checkpoint_identifiers(&mut self) -> Result<Vec<String>, Error>
[src]
Returns a list of all committed checkpoint identifiers in the underlying storage medium.
Auto Trait Implementations
impl<S> Send for HmacWrapper<S> where
S: Send,
S: Send,
impl<S> Sync for HmacWrapper<S> where
S: Sync,
S: Sync,