[][src]Struct nimiq_blockchain::chain_store::ChainStore

pub struct ChainStore<'env> { /* fields omitted */ }

Methods

impl<'env> ChainStore<'env>[src]

pub fn new(env: &'env Environment) -> Self[src]

pub fn get_head(&self, txn_option: Option<&Transaction>) -> Option<Blake2bHash>[src]

pub fn set_head(&self, txn: &mut WriteTransaction, hash: &Blake2bHash)[src]

pub fn get_chain_info(
    &self,
    hash: &Blake2bHash,
    include_body: bool,
    txn_option: Option<&Transaction>
) -> Option<ChainInfo>
[src]

pub fn put_chain_info(
    &self,
    txn: &mut WriteTransaction,
    hash: &Blake2bHash,
    chain_info: &ChainInfo,
    include_body: bool
)
[src]

pub fn remove_chain_info(
    &self,
    txn: &mut WriteTransaction,
    hash: &Blake2bHash,
    height: u32
)
[src]

pub fn get_chain_info_at(
    &self,
    block_height: u32,
    include_body: bool,
    txn_option: Option<&Transaction>
) -> Option<ChainInfo>
[src]

pub fn get_block(
    &self,
    hash: &Blake2bHash,
    include_body: bool,
    txn_option: Option<&Transaction>
) -> Option<Block>
[src]

pub fn get_block_at(&self, block_height: u32) -> Option<Block>[src]

pub fn get_blocks_backward(
    &self,
    start_block_hash: &Blake2bHash,
    count: u32,
    include_body: bool,
    txn_option: Option<&Transaction>
) -> Vec<Block>
[src]

pub fn get_blocks_forward(
    &self,
    start_block_hash: &Blake2bHash,
    count: u32,
    include_body: bool,
    txn_option: Option<&Transaction>
) -> Vec<Block>
[src]

pub fn get_blocks(
    &self,
    start_block_hash: &Blake2bHash,
    count: u32,
    include_body: bool,
    direction: Direction,
    txn_option: Option<&Transaction>
) -> Vec<Block>
[src]

Trait Implementations

impl<'env> Debug for ChainStore<'env>[src]

Auto Trait Implementations

impl<'env> Send for ChainStore<'env>

impl<'env> Sync for ChainStore<'env>

Blanket Implementations

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> 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]

impl<T> Erased for T

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self