Struct sc_consensus_aura::BuildAuraWorkerParams [−][src]
pub struct BuildAuraWorkerParams<C, I, PF, SO, L, BS> { pub client: Arc<C>, pub block_import: I, pub proposer_factory: PF, pub sync_oracle: SO, pub justification_sync_link: L, pub force_authoring: bool, pub backoff_authoring_blocks: Option<BS>, pub keystore: SyncCryptoStorePtr, pub block_proposal_slot_portion: SlotProportion, pub max_block_proposal_slot_portion: Option<SlotProportion>, pub telemetry: Option<TelemetryHandle>, }
Expand description
Parameters of build_aura_worker
.
Fields
client: Arc<C>
The client to interact with the chain.
block_import: I
The block import.
proposer_factory: PF
The proposer factory to build proposer instances.
sync_oracle: SO
The sync oracle that can give us the current sync status.
justification_sync_link: L
Hook into the sync module to control the justification sync process.
Should we force the authoring of blocks?
The backoff strategy when we miss slots.
keystore: SyncCryptoStorePtr
The keystore used by the node.
block_proposal_slot_portion: SlotProportion
The proportion of the slot dedicated to proposing.
The block proposing will be limited to this proportion of the slot from the starting of the slot. However, the proposing can still take longer when there is some lenience factor applied, because there were no blocks produced for some slots.
max_block_proposal_slot_portion: Option<SlotProportion>
The maximum proportion of the slot dedicated to proposing with any lenience factor applied due to no blocks being produced.
telemetry: Option<TelemetryHandle>
Telemetry instance used to report telemetry metrics.
Auto Trait Implementations
impl<C, I, PF, SO, L, BS> !RefUnwindSafe for BuildAuraWorkerParams<C, I, PF, SO, L, BS>
impl<C, I, PF, SO, L, BS> Send for BuildAuraWorkerParams<C, I, PF, SO, L, BS> where
BS: Send,
C: Send + Sync,
I: Send,
L: Send,
PF: Send,
SO: Send,
impl<C, I, PF, SO, L, BS> Sync for BuildAuraWorkerParams<C, I, PF, SO, L, BS> where
BS: Sync,
C: Send + Sync,
I: Sync,
L: Sync,
PF: Sync,
SO: Sync,
impl<C, I, PF, SO, L, BS> Unpin for BuildAuraWorkerParams<C, I, PF, SO, L, BS> where
BS: Unpin,
I: Unpin,
L: Unpin,
PF: Unpin,
SO: Unpin,
impl<C, I, PF, SO, L, BS> !UnwindSafe for BuildAuraWorkerParams<C, I, PF, SO, L, BS>
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
The counterpart to unchecked_from
.
Consume self to return an equivalent value of T
.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more