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> !RefUnwindSafe for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> !UnwindSafe for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> Forget for SlotWorkerOptions<BP, BCI, CSS>
impl<BP, BCI, CSS> Freeze for SlotWorkerOptions<BP, BCI, CSS>where
BP: Freeze,
BCI: Freeze,
CSS: Freeze,
*const ArcInner<BoundedInner<NewSlotNotification>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<NewSlotNotification>>>: Freeze,
*const ArcInner<Mutex<SenderTask>> is !null: Freeze,
PhantomData<ArcInner<Mutex<SenderTask>>>: Freeze,
*const ArcInner<BoundedInner<BlockSealNotification>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<BlockSealNotification>>>: Freeze,
NonZero<u8>: Freeze,
*const ArcInner<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>> is !null: Freeze,
PhantomData<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: Freeze,
impl<BP, BCI, CSS> Move 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>where
CSS: Unpin,
BCI: Unpin,
BP: Unpin,
BoundedSenderInner<NewSlotNotification>: Unpin,
BoundedSenderInner<BlockSealNotification>: Unpin,
NonZero<u8>: Unpin,
*const ArcInner<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>> is !null: Unpin,
Align1<u8>: Unpin,
*const u8 is !null: Unpin,
NonZero<u32>: Unpin,
*const ArcInner<Mutex<RawMutex, Option<PotCheckpoints>>> is !null: Unpin,
u32: Unpin,
impl<BP, BCI, CSS> UnsafeUnpin for SlotWorkerOptions<BP, BCI, CSS>where
BP: UnsafeUnpin,
BCI: UnsafeUnpin,
CSS: UnsafeUnpin,
*const ArcInner<BoundedInner<NewSlotNotification>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<NewSlotNotification>>>: UnsafeUnpin,
*const ArcInner<Mutex<SenderTask>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<SenderTask>>>: UnsafeUnpin,
*const ArcInner<BoundedInner<BlockSealNotification>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<BlockSealNotification>>>: UnsafeUnpin,
NonZeroU8Inner: UnsafeUnpin,
*const ArcInner<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>> is !null: UnsafeUnpin,
PhantomData<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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