pub struct FarmerRpcConfig<BCI, CSS> {
pub listen_on: SocketAddr,
pub genesis_block: OwnedBeaconChainBlock,
pub consensus_constants: ConsensusConstants,
pub max_pieces_in_sector: u16,
pub new_slot_notification_receiver: Receiver<NewSlotNotification>,
pub block_sealing_notification_receiver: Receiver<BlockSealNotification>,
pub new_super_segment_notification_receiver: Receiver<SuperSegment>,
pub shard_membership_updates_sender: Sender<Vec<FarmerShardMembershipInfo>>,
pub dsn_bootstrap_nodes: Vec<Multiaddr>,
pub beacon_chain_info: BCI,
pub chain_sync_status: CSS,
pub erasure_coding: ErasureCoding,
}Expand description
Farmer RPC configuration
Fields§
§listen_on: SocketAddrIP and port (TCP) on which to listen for farmer RPC requests
genesis_block: OwnedBeaconChainBlockGenesis beacon chain block
consensus_constants: ConsensusConstantsConsensus constants
max_pieces_in_sector: u16Max pieces in a sector
new_slot_notification_receiver: Receiver<NewSlotNotification>New slot notifications
block_sealing_notification_receiver: Receiver<BlockSealNotification>Block sealing notifications
new_super_segment_notification_receiver: Receiver<SuperSegment>Super segment notifications
shard_membership_updates_sender: Sender<Vec<FarmerShardMembershipInfo>>Shard membership updates
dsn_bootstrap_nodes: Vec<Multiaddr>DSN bootstrap nodes
beacon_chain_info: BCIBeacon chain info
chain_sync_status: CSSChain sync status
erasure_coding: ErasureCodingErasure coding instance
Trait Implementations§
Auto Trait Implementations§
impl<BCI, CSS> !RefUnwindSafe for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> !UnwindSafe for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Forget for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Freeze for FarmerRpcConfig<BCI, CSS>where
*const ArcInner<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>> is !null: Freeze,
PhantomData<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>>: Freeze,
*const ArcInner<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>> is !null: Freeze,
PhantomData<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>>: Freeze,
NonZero<u8>: Freeze,
*const ArcInner<BoundedInner<NewSlotNotification>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<NewSlotNotification>>>: Freeze,
*const ArcInner<BoundedInner<BlockSealNotification>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<BlockSealNotification>>>: Freeze,
*const ArcInner<BoundedInner<SuperSegment>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<SuperSegment>>>: Freeze,
*const ArcInner<BoundedInner<Vec<FarmerShardMembershipInfo>>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<Vec<FarmerShardMembershipInfo>>>>: Freeze,
*const ArcInner<Mutex<SenderTask>> is !null: Freeze,
PhantomData<ArcInner<Mutex<SenderTask>>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<Multiaddr>: Freeze,
BCI: Freeze,
CSS: Freeze,
impl<BCI, CSS> Move for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Send for FarmerRpcConfig<BCI, CSS>where
CSS: Send,
BCI: Send,
Arc<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>>: Send,
Arc<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>>: Send,
NonZero<u8>: Send,
Arc<BoundedInner<NewSlotNotification>>: Send,
Arc<BoundedInner<BlockSealNotification>>: Send,
Arc<BoundedInner<SuperSegment>>: Send,
Arc<BoundedInner<Vec<FarmerShardMembershipInfo>>>: Send,
Arc<Mutex<SenderTask>>: Send,
RawVecInner: Send,
Bytes: Send,
impl<BCI, CSS> Sync for FarmerRpcConfig<BCI, CSS>where
CSS: Sync,
BCI: Sync,
Arc<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>>: Sync,
Arc<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>>: Sync,
NonZero<u8>: Sync,
Arc<BoundedInner<NewSlotNotification>>: Sync,
Arc<BoundedInner<BlockSealNotification>>: Sync,
Arc<BoundedInner<SuperSegment>>: Sync,
Arc<BoundedInner<Vec<FarmerShardMembershipInfo>>>: Sync,
Arc<Mutex<SenderTask>>: Sync,
RawVecInner: Sync,
Bytes: Sync,
impl<BCI, CSS> Unpin for FarmerRpcConfig<BCI, CSS>where
CSS: Unpin,
BCI: Unpin,
*const ArcInner<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>> is !null: Unpin,
&'static BlockHeaderPrefix: Unpin,
&'static BlockHeaderResult: Unpin,
&'static BlockHeaderConsensusInfo: Unpin,
&'static BlockHeaderEd25519Seal: Unpin,
&'static Blake3Hash: Unpin,
NonZero<u32>: Unpin,
NonZero<u16>: Unpin,
&'static SuperSegmentRoot: Unpin,
&'static BlockHeaderPotParametersChange: Unpin,
&'static [u8]: Unpin,
Align4<u32>: Unpin,
*const u8 is !null: Unpin,
*const ArcInner<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>> is !null: Unpin,
&'static [SegmentRoot]: Unpin,
&'static [PotCheckpoints]: Unpin,
NonZero<u8>: Unpin,
Receiver<NewSlotNotification>: Unpin,
Receiver<BlockSealNotification>: Unpin,
Receiver<SuperSegment>: Unpin,
BoundedSenderInner<Vec<FarmerShardMembershipInfo>>: Unpin,
*const u8: Unpin,
Align8<*mut ()>: Unpin,
&'static Vtable: Unpin,
impl<BCI, CSS> UnsafeUnpin for FarmerRpcConfig<BCI, CSS>where
*const ArcInner<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>> is !null: UnsafeUnpin,
PhantomData<Yoke<BeaconChainHeader<'static>, SharedAlignedBuffer>>: UnsafeUnpin,
*const ArcInner<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>> is !null: UnsafeUnpin,
PhantomData<Yoke<BeaconChainBody<'static>, SharedAlignedBuffer>>: UnsafeUnpin,
NonZeroU8Inner: UnsafeUnpin,
*const ArcInner<BoundedInner<NewSlotNotification>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<NewSlotNotification>>>: UnsafeUnpin,
*const ArcInner<BoundedInner<BlockSealNotification>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<BlockSealNotification>>>: UnsafeUnpin,
*const ArcInner<BoundedInner<SuperSegment>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<SuperSegment>>>: UnsafeUnpin,
*const ArcInner<BoundedInner<Vec<FarmerShardMembershipInfo>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<Vec<FarmerShardMembershipInfo>>>>: UnsafeUnpin,
*const ArcInner<Mutex<SenderTask>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<SenderTask>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Multiaddr>: UnsafeUnpin,
BCI: UnsafeUnpin,
CSS: 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