pub struct StateStore { /* private fields */ }Implementations§
Source§impl StateStore
impl StateStore
pub fn new(objects: ObjectStore, blobs: BlobStore, wal: Wal) -> Self
pub fn empty_root(&self) -> Result<StateRoot>
pub fn get(&self, root: StateRoot, key: &[u8]) -> Result<Option<Vec<u8>>>
pub fn set( &self, root: StateRoot, key: &[u8], value: &[u8], ) -> Result<StateRoot>
pub fn del(&self, root: StateRoot, key: &[u8]) -> Result<StateRoot>
pub fn compact(&self, root: StateRoot) -> Result<StateRoot>
pub fn proof(&self, root: StateRoot, key: &[u8]) -> Result<StateProof>
pub fn verify_proof( &self, root: StateRoot, key: &[u8], proof: &StateProof, ) -> bool
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 · 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