[][src]Struct nimiq_blockchain::transaction_cache::TransactionCache

pub struct TransactionCache { /* fields omitted */ }

Methods

impl TransactionCache[src]

pub fn new() -> Self[src]

pub fn contains(&self, transaction_hash: &Blake2bHash) -> bool[src]

pub fn contains_any(&self, block: &Block) -> bool[src]

pub fn push_block(&mut self, block: &Block)[src]

pub fn revert_block(&mut self, block: &Block)[src]

pub fn prepend_block(&mut self, block: &Block)[src]

pub fn missing_blocks(&self) -> u32[src]

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

pub fn head_hash(&self) -> Blake2bHash[src]

pub fn tail_hash(&self) -> Blake2bHash[src]

Trait Implementations

impl Clone for TransactionCache[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for TransactionCache[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Send + Sync + Clone

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> Same<T> for T

type Output = T

Should always be Self