[][src]Struct exonum_merkledb::Patch

pub struct Patch { /* fields omitted */ }

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]

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?

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]

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?

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,