pub struct SharedStore<S>(/* private fields */);Expand description
Wraps a store to make it shareable by cloning
Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedStore<S>
fn clone(&self) -> SharedStore<S>
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 moreSource§type Error = <S as Store>::Error
type Error = <S as Store>::Error
Error type - expected to envelope all possible errors in store
Source§fn set(
&mut self,
path: Path,
value: Vec<u8>,
) -> Result<Option<Vec<u8>>, Self::Error>
fn set( &mut self, path: Path, value: Vec<u8>, ) -> Result<Option<Vec<u8>>, Self::Error>
Set
value for pathSource§fn get(&self, height: Height, path: &Path) -> Option<Vec<u8>>
fn get(&self, height: Height, path: &Path) -> Option<Vec<u8>>
Get associated
value for path at specified heightSource§fn commit(&mut self) -> Result<Vec<u8>, Self::Error>
fn commit(&mut self) -> Result<Vec<u8>, Self::Error>
Commit
Pending block to canonical chain and create new PendingSource§fn current_height(&self) -> RawHeight
fn current_height(&self) -> RawHeight
Return the current height of the chain
Auto Trait Implementations§
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