[][src]Struct sc_basic_authorship::ProposerFactory

pub struct ProposerFactory<A, B, C> { /* fields omitted */ }

Proposer factory.

Methods

impl<A, B, C> ProposerFactory<A, B, C>[src]

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

impl<B, Block, C, A> ProposerFactory<A, B, C> where
    A: TransactionPool<Block = Block> + 'static,
    B: Backend<Block> + Send + Sync + 'static,
    Block: BlockT,
    C: BlockBuilderProvider<B, Block, C> + HeaderBackend<Block> + ProvideRuntimeApi<Block> + Send + Sync + 'static,
    C::Api: ApiExt<Block, StateBackend = StateBackendFor<B, Block>> + BlockBuilderApi<Block, Error = Error>, 
[src]

pub fn init_with_now(
    &mut self,
    parent_header: &<Block as BlockT>::Header,
    now: Box<dyn Fn() -> Instant + Send + Sync>
) -> Proposer<B, Block, C, A>
[src]

Trait Implementations

impl<A, B, Block, C> Environment<Block> for ProposerFactory<A, B, C> where
    A: TransactionPool<Block = Block> + 'static,
    B: Backend<Block> + Send + Sync + 'static,
    Block: BlockT,
    C: BlockBuilderProvider<B, Block, C> + HeaderBackend<Block> + ProvideRuntimeApi<Block> + Send + Sync + 'static,
    C::Api: ApiExt<Block, StateBackend = StateBackendFor<B, Block>> + BlockBuilderApi<Block, Error = Error>, 
[src]

type CreateProposer = Ready<Result<Self::Proposer, Self::Error>>

A future that resolves to the proposer.

type Proposer = Proposer<B, Block, C, A>

The proposer type this creates.

type Error = Error

Error which can occur upon creation.

Auto Trait Implementations

impl<A, B, C> RefUnwindSafe for ProposerFactory<A, B, C> where
    A: RefUnwindSafe,
    B: RefUnwindSafe,
    C: RefUnwindSafe

impl<A, B, C> Send for ProposerFactory<A, B, C> where
    A: Send + Sync,
    B: Send,
    C: Send + Sync

impl<A, B, C> Sync for ProposerFactory<A, B, C> where
    A: Send + Sync,
    B: Sync,
    C: Send + Sync

impl<A, B, C> Unpin for ProposerFactory<A, B, C> where
    B: Unpin

impl<A, B, C> UnwindSafe for ProposerFactory<A, B, C> where
    A: RefUnwindSafe,
    B: UnwindSafe,
    C: RefUnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

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

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

Get a reference to the inner from the outer.

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

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>,