Struct sc_consensus_manual_seal::ManualSealParams[][src]

pub struct ManualSealParams<B: BlockT, BI, E, C: ProvideRuntimeApi<B>, A: ChainApi, SC, CS> {
    pub block_import: BI,
    pub env: E,
    pub client: Arc<C>,
    pub pool: Arc<Pool<A>>,
    pub commands_stream: CS,
    pub select_chain: SC,
    pub consensus_data_provider: Option<Box<dyn ConsensusDataProvider<B, Transaction = TransactionFor<C, B>>>>,
    pub inherent_data_providers: InherentDataProviders,
}

Params required to start the instant sealing authorship task.

Fields

block_import: BI

Block import instance for well. importing blocks.

env: E

The environment we are producing blocks for.

client: Arc<C>

Client instance

pool: Arc<Pool<A>>

Shared reference to the transaction pool.

commands_stream: CS

Stream<Item = EngineCommands>, Basically the receiving end of a channel for sending commands to the authorship task.

select_chain: SC

SelectChain strategy.

consensus_data_provider: Option<Box<dyn ConsensusDataProvider<B, Transaction = TransactionFor<C, B>>>>

Digest provider for inclusion in blocks.

inherent_data_providers: InherentDataProviders

Provider for inherents to include in blocks.

Auto Trait Implementations

impl<B, BI, E, C, A, SC, CS> !RefUnwindSafe for ManualSealParams<B, BI, E, C, A, SC, CS>[src]

impl<B, BI, E, C, A, SC, CS> Send for ManualSealParams<B, BI, E, C, A, SC, CS> where
    BI: Send,
    C: Send + Sync,
    CS: Send,
    E: Send,
    SC: Send
[src]

impl<B, BI, E, C, A, SC, CS> Sync for ManualSealParams<B, BI, E, C, A, SC, CS> where
    BI: Sync,
    C: Send + Sync,
    CS: Sync,
    E: Sync,
    SC: Sync
[src]

impl<B, BI, E, C, A, SC, CS> Unpin for ManualSealParams<B, BI, E, C, A, SC, CS> where
    BI: Unpin,
    CS: Unpin,
    E: Unpin,
    SC: Unpin
[src]

impl<B, BI, E, C, A, SC, CS> !UnwindSafe for ManualSealParams<B, BI, E, C, A, SC, CS>[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> 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> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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
    T: Bounded,
    S: TryInto<T>, 

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