pub struct SlotWorkerOptions<BP, BCI, CSS> {
pub block_producer: BP,
pub beacon_chain_info: BCI,
pub chain_sync_status: CSS,
pub force_authoring: bool,
pub new_slot_notification_sender: Sender<NewSlotNotification>,
pub block_sealing_notification_sender: Sender<BlockSealNotification>,
pub consensus_constants: ConsensusConstants,
pub pot_verifier: PotVerifier,
}Expand description
Options for SlotWorker
Fields§
§block_producer: BPProducer of a new block
beacon_chain_info: BCIBeacon chain info
chain_sync_status: CSSChain sync status
Force authoring of blocks even if we are offline
new_slot_notification_sender: Sender<NewSlotNotification>Sender for new slot notifications
block_sealing_notification_sender: Sender<BlockSealNotification>Sender for block sealing notifications
consensus_constants: ConsensusConstantsConsensus constants
pot_verifier: PotVerifierProof of time verifier
Trait Implementations§
Auto Trait Implementations§
impl<BP, BCI, CSS> Freeze for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> !RefUnwindSafe for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> Send for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> Sync for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> Unpin for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> !UnwindSafe for SlotWorkerOptions<BP, BCI, CSS>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more