[][src]Trait blockchain_core::Auxiliary

pub trait Auxiliary<B: Block>: Clone {
    type Key: Clone + Eq + Hash;
    fn key(&self) -> Self::Key;

    fn associated(&self) -> Vec<B::Identifier> { ... }
}

A value where the key is contained in.

Associated Types

type Key: Clone + Eq + Hash

Key type

Loading content...

Required methods

fn key(&self) -> Self::Key

Return the key of this object.

Loading content...

Provided methods

fn associated(&self) -> Vec<B::Identifier>

Return block ids associated with this auxiliary. If the backend removes any of the blocks listed here, it is expected to remove this auxiliary entry, and trigger a recalculation for the consensus engine.

Loading content...

Implementations on Foreign Types

impl<B: Block> Auxiliary<B> for ()[src]

type Key = ()

Loading content...

Implementors

Loading content...