[−][src]Struct nimiq_blockchain::chain_store::ChainStore
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]
&self,
hash: &Blake2bHash,
include_body: bool,
txn_option: Option<&Transaction>
) -> Option<ChainInfo>
pub fn put_chain_info(
&self,
txn: &mut WriteTransaction,
hash: &Blake2bHash,
chain_info: &ChainInfo,
include_body: bool
)
[src]
&self,
txn: &mut WriteTransaction,
hash: &Blake2bHash,
chain_info: &ChainInfo,
include_body: bool
)
pub fn remove_chain_info(
&self,
txn: &mut WriteTransaction,
hash: &Blake2bHash,
height: u32
)
[src]
&self,
txn: &mut WriteTransaction,
hash: &Blake2bHash,
height: u32
)
pub fn get_chain_info_at(
&self,
block_height: u32,
include_body: bool,
txn_option: Option<&Transaction>
) -> Option<ChainInfo>
[src]
&self,
block_height: u32,
include_body: bool,
txn_option: Option<&Transaction>
) -> Option<ChainInfo>
pub fn get_block(
&self,
hash: &Blake2bHash,
include_body: bool,
txn_option: Option<&Transaction>
) -> Option<Block>
[src]
&self,
hash: &Blake2bHash,
include_body: bool,
txn_option: Option<&Transaction>
) -> Option<Block>
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]
&self,
start_block_hash: &Blake2bHash,
count: u32,
include_body: bool,
txn_option: Option<&Transaction>
) -> Vec<Block>
pub fn get_blocks_forward(
&self,
start_block_hash: &Blake2bHash,
count: u32,
include_body: bool,
txn_option: Option<&Transaction>
) -> Vec<Block>
[src]
&self,
start_block_hash: &Blake2bHash,
count: u32,
include_body: bool,
txn_option: Option<&Transaction>
) -> Vec<Block>
pub fn get_blocks(
&self,
start_block_hash: &Blake2bHash,
count: u32,
include_body: bool,
direction: Direction,
txn_option: Option<&Transaction>
) -> Vec<Block>
[src]
&self,
start_block_hash: &Blake2bHash,
count: u32,
include_body: bool,
direction: Direction,
txn_option: Option<&Transaction>
) -> Vec<Block>
Trait Implementations
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self