pub struct SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS> {
pub block_builder: BB,
pub block_import: BI,
pub beacon_chain_info: BCI,
pub chain_info: CI,
pub chain_sync_status: CSS,
pub force_authoring: bool,
pub new_slot_notification_sender: Sender<NewSlotNotification>,
pub block_sealing_notification_sender: Sender<BlockSealNotification>,
pub segment_headers_store: SegmentHeadersStore,
pub consensus_constants: ConsensusConstants,
pub pot_verifier: PotVerifier,
}
Expand description
Parameters for SubspaceSlotWorker
Fields§
§block_builder: BB
Builder that can create a new block
block_import: BI
Block import to import the block created by block builder
beacon_chain_info: BCI
Beacon chain info
chain_info: CI
Chain info
chain_sync_status: CSS
Chain 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
segment_headers_store: SegmentHeadersStore
Persistent storage of segment headers
consensus_constants: ConsensusConstants
Consensus constants
pot_verifier: PotVerifier
Proof of time verifier
Trait Implementations§
Auto Trait Implementations§
impl<BB, BI, BCI, CI, CSS> Freeze for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS>
impl<BB, BI, BCI, CI, CSS> !RefUnwindSafe for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS>
impl<BB, BI, BCI, CI, CSS> Send for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS>
impl<BB, BI, BCI, CI, CSS> Sync for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS>
impl<BB, BI, BCI, CI, CSS> Unpin for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, CSS>
impl<BB, BI, BCI, CI, CSS> !UnwindSafe for SubspaceSlotWorkerOptions<BB, BI, BCI, CI, 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