[−][src]Struct exonum_merkledb::Patch
A set of serial changes that should be applied to a storage atomically.
This set can contain changes from multiple tables. When a block is added to the blockchain, changes are first collected into a patch and then applied to the storage.
Methods
impl Patch
[src]
pub fn changes(&self) -> HashMap<String, Changes>
[src]
Return changes keyed by the index address.
pub fn iter(&self) -> HmIter<String, Changes>
[src]
Return an iterator over the underlying changes.
Trait Implementations
impl Snapshot for Patch
[src]
fn get(&self, name: &str, key: &[u8]) -> Option<Vec<u8>>
[src]
fn contains(&self, name: &str, key: &[u8]) -> bool
[src]
fn iter(&self, name: &str, from: &[u8]) -> Iter
[src]
impl IntoIterator for Patch
[src]
type Item = (String, Changes)
The type of the elements being iterated over.
type IntoIter = PatchIterator
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl From<Patch> for Fork
[src]
fn from(patch: Patch) -> Self
[src]
Creates a fork based on the provided patch
and snapshot
.
Note: using created fork to modify data already present in patch
may lead
to an inconsistent database state. Hence, this method is useful only if you
are sure that the fork and patch
interacted with different indices.
impl Debug for Patch
[src]
Auto Trait Implementations
impl Sync for Patch
impl Send for Patch
impl Unpin for Patch
impl !RefUnwindSafe for Patch
impl !UnwindSafe for Patch
Blanket Implementations
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,