pub struct FarmerRpcConfig<CI, CSS> {
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 dsn_bootstrap_nodes: Vec<Multiaddr>,
pub chain_info: CI,
pub chain_sync_status: CSS,
pub erasure_coding: ErasureCoding,
}Expand description
Farmer RPC configuration
Fields§
§genesis_block: OwnedBeaconChainBlockGenesis beacon beacon chain block
consensus_constants: ConsensusConstantsConsensus constants
max_pieces_in_sector: u16Max pieces in 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
dsn_bootstrap_nodes: Vec<Multiaddr>DSN bootstrap nodes
chain_info: CIBeacon chain info
chain_sync_status: CSSChain sync status
erasure_coding: ErasureCodingErasure coding instance
Trait Implementations§
Auto Trait Implementations§
impl<CI, CSS> Freeze for FarmerRpcConfig<CI, CSS>
impl<CI, CSS> !RefUnwindSafe for FarmerRpcConfig<CI, CSS>
impl<CI, CSS> Send for FarmerRpcConfig<CI, CSS>
impl<CI, CSS> Sync for FarmerRpcConfig<CI, CSS>
impl<CI, CSS> Unpin for FarmerRpcConfig<CI, CSS>
impl<CI, CSS> !UnwindSafe for FarmerRpcConfig<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