Struct sc_consensus_aura::AuraBlockImport[][src]

pub struct AuraBlockImport<Block: BlockT, C, I: BlockImport<Block>, P> { /* fields omitted */ }

A block-import handler for Aura.

Implementations

impl<Block: BlockT, C, I: BlockImport<Block>, P> AuraBlockImport<Block, C, I, P>[src]

pub fn new(inner: I, client: Arc<C>) -> Self[src]

New aura block import.

Trait Implementations

impl<Block: BlockT, C, I, P> BlockImport<Block> for AuraBlockImport<Block, C, I, P> where
    I: BlockImport<Block, Transaction = TransactionFor<C, Block>> + Send + Sync,
    I::Error: Into<ConsensusError>,
    C: HeaderBackend<Block> + ProvideRuntimeApi<Block>,
    P: Pair + Send + Sync + 'static,
    P::Public: Clone + Eq + Send + Sync + Hash + Debug + Encode + Decode,
    P::Signature: Encode + Decode
[src]

type Error = ConsensusError

The error type.

type Transaction = TransactionFor<C, Block>

The transaction type used by the backend.

impl<Block: BlockT, C, I: Clone + BlockImport<Block>, P> Clone for AuraBlockImport<Block, C, I, P>[src]

Auto Trait Implementations

impl<Block, C, I, P> RefUnwindSafe for AuraBlockImport<Block, C, I, P> where
    Block: RefUnwindSafe,
    C: RefUnwindSafe,
    I: RefUnwindSafe,
    P: RefUnwindSafe
[src]

impl<Block, C, I, P> Send for AuraBlockImport<Block, C, I, P> where
    C: Send + Sync,
    I: Send,
    P: Send
[src]

impl<Block, C, I, P> Sync for AuraBlockImport<Block, C, I, P> where
    C: Send + Sync,
    I: Sync,
    P: Sync
[src]

impl<Block, C, I, P> Unpin for AuraBlockImport<Block, C, I, P> where
    Block: Unpin,
    I: Unpin,
    P: Unpin
[src]

impl<Block, C, I, P> UnwindSafe for AuraBlockImport<Block, C, I, P> where
    Block: UnwindSafe,
    C: RefUnwindSafe,
    I: UnwindSafe,
    P: UnwindSafe
[src]

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> CheckedConversion for T[src]

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

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    T: From<Outer>,
    Outer: AsRef<T> + AsMut<T> + From<T>, 
[src]

pub fn from_ref(outer: &Outer) -> &T[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut T[src]

Get a mutable reference to the inner from the outer.

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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

type Owned = T

The resulting type after obtaining ownership.

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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 
[src]

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

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