[][src]Struct regiusmark::blockchain::store::BlockStore

pub struct BlockStore { /* fields omitted */ }

Methods

impl BlockStore[src]

pub fn new(blocklog_file: &Path, indexer: Arc<Indexer>) -> BlockStore[src]

pub fn get_chain_height(&self) -> u64[src]

pub fn get(&self, height: u64) -> Option<Arc<Block>>[src]

pub fn is_empty(&self) -> bool[src]

pub fn insert(&mut self, batch: &mut WriteBatch, block: Block)[src]

pub fn insert_genesis(&mut self, batch: &mut WriteBatch, block: Block)[src]

pub fn reindex_blocks<F>(&mut self, opts: ReindexOpts, index_fn: F) where
    F: Fn(&mut WriteBatch, &Block), 
[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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