pub struct NodeBaseBuilder<'a, Step = ()> { /* private fields */ }Implementations§
Source§impl<'a> NodeBaseBuilder<'a, ()>
impl<'a> NodeBaseBuilder<'a, ()>
pub fn new( base_config: &'a NodeBaseConfig, global_config: &'a GlobalConfig, ) -> Self
pub fn init_network( self, public_addr: SocketAddr, secret_key: &SecretKey, ) -> Result<NodeBaseBuilder<'a, Step0>>
Source§impl<'a> NodeBaseBuilder<'a, Step0>
impl<'a> NodeBaseBuilder<'a, Step0>
pub async fn init_storage(self) -> Result<NodeBaseBuilder<'a, Step1>>
Source§impl<'a> NodeBaseBuilder<'a, Step1>
impl<'a> NodeBaseBuilder<'a, Step1>
pub fn init_blockchain_rpc<RL, SL>(
self,
remote_broadcast_listener: RL,
self_broadcast_listener: SL,
) -> Result<NodeBaseBuilder<'a, Step2>>where
RL: BroadcastListener,
SL: SelfBroadcastListener,
Source§impl<'a, Step> NodeBaseBuilder<'a, Step>
impl<'a, Step> NodeBaseBuilder<'a, Step>
pub fn base_config(&self) -> &'a NodeBaseConfig
pub fn global_config(&self) -> &'a GlobalConfig
pub fn initial_peer_count(&self) -> usize
pub fn with_initial_peer_count(self, count: usize) -> Self
Source§impl<Step: AsRef<Step0>> NodeBaseBuilder<'_, Step>
impl<Step: AsRef<Step0>> NodeBaseBuilder<'_, Step>
pub fn keypair(&self) -> &Arc<KeyPair>
pub fn network(&self) -> &Network
pub fn dht_client(&self) -> &DhtClient
pub fn peer_resolver(&self) -> &PeerResolver
pub fn overlay_service(&self) -> &OverlayService
Source§impl<Step: AsRef<Step1>> NodeBaseBuilder<'_, Step>
impl<Step: AsRef<Step1>> NodeBaseBuilder<'_, Step>
pub fn storage_context(&self) -> &StorageContext
pub fn core_storage(&self) -> &CoreStorage
Source§impl<Step: AsRef<Step2>> NodeBaseBuilder<'_, Step>
impl<Step: AsRef<Step2>> NodeBaseBuilder<'_, Step>
pub fn blockchain_rpc_client(&self) -> &BlockchainRpcClient
Auto Trait Implementations§
impl<'a, Step> Freeze for NodeBaseBuilder<'a, Step>where
Step: Freeze,
impl<'a, Step> RefUnwindSafe for NodeBaseBuilder<'a, Step>where
Step: RefUnwindSafe,
impl<'a, Step> Send for NodeBaseBuilder<'a, Step>where
Step: Send,
impl<'a, Step> Sync for NodeBaseBuilder<'a, Step>where
Step: Sync,
impl<'a, Step> Unpin for NodeBaseBuilder<'a, Step>where
Step: Unpin,
impl<'a, Step> UnwindSafe for NodeBaseBuilder<'a, Step>where
Step: UnwindSafe,
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