pub struct SlotWorker<PosTable, BP, BCI, CSS> { /* private fields */ }Expand description
Slot worker responsible for block production
Implementations§
Source§impl<PosTable, BP, BCI, CSS> SlotWorker<PosTable, BP, BCI, CSS>where
PosTable: Table,
BP: BlockProducer,
BCI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
impl<PosTable, BP, BCI, CSS> SlotWorker<PosTable, BP, BCI, CSS>where
PosTable: Table,
BP: BlockProducer,
BCI: ChainInfo<OwnedBeaconChainBlock>,
CSS: ChainSyncStatus,
Sourcepub fn new(_: SlotWorkerOptions<BP, BCI, CSS>) -> Self
pub fn new(_: SlotWorkerOptions<BP, BCI, CSS>) -> Self
Create a new slot worker
Trait Implementations§
Auto Trait Implementations§
impl<PosTable, BP, BCI, CSS> !RefUnwindSafe for SlotWorker<PosTable, BP, BCI, CSS>
impl<PosTable, BP, BCI, CSS> !UnwindSafe for SlotWorker<PosTable, BP, BCI, CSS>
impl<PosTable, BP, BCI, CSS> Forget for SlotWorker<PosTable, BP, BCI, CSS>
impl<PosTable, BP, BCI, CSS> Freeze for SlotWorker<PosTable, 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,
*const LeafNode<SlotNumber, (SolutionParameters, Receiver<Solution>)> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(SlotNumber, (SolutionParameters, Receiver<Solution>))>>: Freeze,
*const LeafNode<SlotNumber, PotCheckpoints> is !null: Freeze,
PhantomData<Box<(SlotNumber, PotCheckpoints)>>: Freeze,
NonZero<u8>: Freeze,
*const ArcInner<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>> is !null: Freeze,
PhantomData<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: Freeze,
PhantomData<PosTable>: Freeze,
impl<PosTable, BP, BCI, CSS> Move for SlotWorker<PosTable, BP, BCI, CSS>
impl<PosTable, BP, BCI, CSS> Send for SlotWorker<PosTable, BP, BCI, CSS>where
CSS: Send,
BCI: Send,
BP: Send,
PosTable: Send,
Arc<BoundedInner<NewSlotNotification>>: Send,
Arc<Mutex<SenderTask>>: Send,
Arc<BoundedInner<BlockSealNotification>>: Send,
NodeRef<Owned, SlotNumber, (SolutionParameters, Receiver<Solution>), LeafOrInternal>: Send,
BoxRaw<(SlotNumber, (SolutionParameters, Receiver<Solution>))>: Send,
NodeRef<Owned, SlotNumber, PotCheckpoints, LeafOrInternal>: Send,
BoxRaw<(SlotNumber, PotCheckpoints)>: Send,
NonZero<u8>: Send,
Arc<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: Send,
impl<PosTable, BP, BCI, CSS> Sync for SlotWorker<PosTable, BP, BCI, CSS>where
CSS: Sync,
BCI: Sync,
BP: Sync,
PosTable: Sync,
Arc<BoundedInner<NewSlotNotification>>: Sync,
Arc<Mutex<SenderTask>>: Sync,
Arc<BoundedInner<BlockSealNotification>>: Sync,
NodeRef<Owned, SlotNumber, (SolutionParameters, Receiver<Solution>), LeafOrInternal>: Sync,
BoxRaw<(SlotNumber, (SolutionParameters, Receiver<Solution>))>: Sync,
NodeRef<Owned, SlotNumber, PotCheckpoints, LeafOrInternal>: Sync,
BoxRaw<(SlotNumber, PotCheckpoints)>: Sync,
NonZero<u8>: Sync,
Arc<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: Sync,
impl<PosTable, BP, BCI, CSS> Unpin for SlotWorker<PosTable, BP, BCI, CSS>where
CSS: Unpin,
BCI: Unpin,
BP: Unpin,
PosTable: Unpin,
BoundedSenderInner<NewSlotNotification>: Unpin,
BoundedSenderInner<BlockSealNotification>: Unpin,
*const LeafNode<SlotNumber, (SolutionParameters, Receiver<Solution>)> is !null: Unpin,
Box<(SlotNumber, (SolutionParameters, Receiver<Solution>))>: Unpin,
*const LeafNode<SlotNumber, PotCheckpoints> is !null: Unpin,
Box<(SlotNumber, PotCheckpoints)>: 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<PosTable, BP, BCI, CSS> UnsafeUnpin for SlotWorker<PosTable, 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,
*const LeafNode<SlotNumber, (SolutionParameters, Receiver<Solution>)> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(SlotNumber, (SolutionParameters, Receiver<Solution>))>>: UnsafeUnpin,
*const LeafNode<SlotNumber, PotCheckpoints> is !null: UnsafeUnpin,
PhantomData<Box<(SlotNumber, PotCheckpoints)>>: UnsafeUnpin,
NonZeroU8Inner: UnsafeUnpin,
*const ArcInner<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>> is !null: UnsafeUnpin,
PhantomData<Mutex<RawMutex, LruMap<CacheKey, CacheValue>>>: UnsafeUnpin,
PhantomData<PosTable>: 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