Struct lightning_block_sync::poll::ChainPoller[][src]

pub struct ChainPoller<B: DerefMut<Target = T> + Sized + Sync + Send, T: BlockSource> { /* fields omitted */ }

The canonical Poll implementation used for a single BlockSource.

Other Poll implementations must be built using ChainPoller as it provides the only means of validating chain data.

Implementations

impl<B: DerefMut<Target = T> + Sized + Sync + Send, T: BlockSource> ChainPoller<B, T>[src]

pub fn new(block_source: B, network: Network) -> Self[src]

Creates a new poller for the given block source.

If the network parameter is mainnet, then the difficulty between blocks is checked for validity.

Trait Implementations

impl<B: DerefMut<Target = T> + Sized + Sync + Send, T: BlockSource> Poll for ChainPoller<B, T>[src]

Auto Trait Implementations

impl<B, T> RefUnwindSafe for ChainPoller<B, T> where
    B: RefUnwindSafe

impl<B, T> Send for ChainPoller<B, T>

impl<B, T> Sync for ChainPoller<B, T>

impl<B, T> Unpin for ChainPoller<B, T> where
    B: Unpin

impl<B, T> UnwindSafe for ChainPoller<B, T> where
    B: UnwindSafe

Blanket Implementations

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

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

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

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.