pub struct StateStore { /* private fields */ }Implementations§
Source§impl StateStore
impl StateStore
pub fn open(path: &Path) -> Result<Self>
pub fn get_high_water( &self, producer_id: &str, issuer_key_hash_hex: &str, ) -> Option<u64>
pub fn get_manifest_digest( &self, producer_id: &str, issuer_key_hash_hex: &str, ) -> Option<[u8; 32]>
pub fn advance( &mut self, producer_id: &str, issuer_key_hash_hex: &str, epoch: u64, manifest_digest: [u8; 32], ) -> Result<()>
pub fn check_rollback(&self, bundle: &Bundle) -> Result<()>
pub fn check_continuity(&self, bundle: &Bundle) -> Result<()>
pub fn advance_from_bundle(&mut self, bundle: &Bundle) -> Result<()>
Trait Implementations§
Source§impl Clone for StateStore
impl Clone for StateStore
Source§fn clone(&self) -> StateStore
fn clone(&self) -> StateStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StateStore
impl RefUnwindSafe for StateStore
impl Send for StateStore
impl Sync for StateStore
impl Unpin for StateStore
impl UnsafeUnpin for StateStore
impl UnwindSafe for StateStore
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