pub struct ConfiguredNetwork {
pub keypair: Arc<KeyPair>,
pub network: Network,
pub dht_client: DhtClient,
pub peer_resolver: PeerResolver,
pub overlay_service: OverlayService,
}Fields§
§keypair: Arc<KeyPair>§network: Network§dht_client: DhtClient§peer_resolver: PeerResolver§overlay_service: OverlayServiceImplementations§
Source§impl ConfiguredNetwork
impl ConfiguredNetwork
pub fn new( public_addr: SocketAddr, secret_key: &SecretKey, base_config: &NodeBaseConfig, bootstrap_peers: &[PeerInfo], ) -> Result<Self>
pub fn add_blockchain_rpc<BL, SL, RP>( &self, zerostate: &ZerostateId, storage: CoreStorage, rpc_provider: RP, remote_broadcast_listener: BL, self_broadcast_listener: SL, base_config: &NodeBaseConfig, ) -> (BlockchainRpcService<BL>, BlockchainRpcClient)
Auto Trait Implementations§
impl Freeze for ConfiguredNetwork
impl !RefUnwindSafe for ConfiguredNetwork
impl Send for ConfiguredNetwork
impl Sync for ConfiguredNetwork
impl Unpin for ConfiguredNetwork
impl UnsafeUnpin for ConfiguredNetwork
impl !UnwindSafe for ConfiguredNetwork
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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