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 archived_segment_notification_receiver: Receiver<ArchivedSegmentNotification>,
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
archived_segment_notification_receiver: Receiver<ArchivedSegmentNotification>Archived 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> Freeze for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> !RefUnwindSafe for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Send for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Sync for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> Unpin for FarmerRpcConfig<BCI, CSS>
impl<BCI, CSS> UnsafeUnpin for FarmerRpcConfig<BCI, CSS>where
BCI: UnsafeUnpin,
CSS: UnsafeUnpin,
impl<BCI, CSS> !UnwindSafe for FarmerRpcConfig<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