Enum exonum::storage::proof_map_index::BranchProofNode [] [src]

pub enum BranchProofNode<V> {
    BranchKeyNotFound {
        left_hash: Hash,
        right_hash: Hash,
        left_key: DBKey,
        right_key: DBKey,
    },
    LeftBranch {
        left_hash: Box<ProofNode<V>>,
        right_hash: Hash,
        left_key: DBKey,
        right_key: DBKey,
    },
    RightBranch {
        left_hash: Hash,
        right_hash: Box<ProofNode<V>>,
        left_key: DBKey,
        right_key: DBKey,
    },
}

An enum that represents a branch node of the map proof.

Variants

A branch of proof in which both children do not contain the requested key.

Fields of BranchKeyNotFound

A hash of the left child.

A hash of the right child.

A key of the left child.

A key of the right child.

A branch of proof in which left child may contains the requested key.

Fields of LeftBranch

A left child node.

A hash of the right child.

A key of the left child.

A key of the right child.

A branch of proof in which right child may contains the requested key.

Fields of RightBranch

A hash of the left child.

A right child node.

A key of the left child.

A key of the right child.

Trait Implementations

impl<V: Serialize> Serialize for BranchProofNode<V>
[src]

Serialize this value into the given Serde serializer. Read more

impl<V: Debug> Debug for BranchProofNode<V>
[src]

Formats the value using the given formatter.