[][src]Struct ckb_snapshot::Snapshot

pub struct Snapshot { /* fields omitted */ }

Implementations

impl Snapshot[src]

pub fn new(
    tip_header: HeaderView,
    total_difficulty: U256,
    epoch_ext: EpochExt,
    store: StoreSnapshot,
    proposals: ProposalView,
    consensus: Arc<Consensus>
) -> Snapshot
[src]

pub fn refresh(&self, store: StoreSnapshot) -> Snapshot[src]

pub fn tip_header(&self) -> &HeaderView[src]

pub fn tip_number(&self) -> BlockNumber[src]

pub fn tip_hash(&self) -> Byte32[src]

pub fn epoch_ext(&self) -> &EpochExt[src]

pub fn consensus(&self) -> &Consensus[src]

pub fn cloned_consensus(&self) -> Arc<Consensus>[src]

pub fn proposals(&self) -> &ProposalView[src]

pub fn total_difficulty(&self) -> &U256[src]

pub fn finalize_block_reward(
    &self,
    parent: &HeaderView
) -> Result<(Script, BlockReward), Error>
[src]

Trait Implementations

impl BlockMedianTimeContext for Snapshot[src]

impl CellProvider for Snapshot[src]

impl<'a> ChainStore<'a> for Snapshot[src]

type Vector = DBPinnableSlice<'a>

impl HeaderChecker for Snapshot[src]

impl HeaderProvider for Snapshot[src]

Auto Trait Implementations

impl !RefUnwindSafe for Snapshot

impl Send for Snapshot

impl Sync for Snapshot

impl Unpin for Snapshot

impl !UnwindSafe for Snapshot

Blanket Implementations

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

impl<T> AsAny for T where
    T: Any

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

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

impl<T> Erased for T

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,