pub struct NodeBaseConfig {Show 15 fields
pub public_ip: Option<IpAddr>,
pub local_ip: IpAddr,
pub port: u16,
pub network: NetworkConfig,
pub dht: DhtConfig,
pub peer_resolver: PeerResolverConfig,
pub overlay: OverlayConfig,
pub public_overlay_client: PublicOverlayClientConfig,
pub storage: StorageConfig,
pub core_storage: CoreStorageConfig,
pub starter: StarterConfig,
pub blockchain_rpc_client: BlockchainRpcClientConfig,
pub blockchain_rpc_service: BlockchainRpcServiceConfig,
pub archive_block_provider: ArchiveBlockProviderConfig,
pub blockchain_block_provider: BlockchainBlockProviderConfig,
}Fields§
§public_ip: Option<IpAddr>Public IP address of the node.
Default: resolved automatically.
local_ip: IpAddrIp address to listen on.
Default: 0.0.0.0
port: u16Default: 30000.
network: NetworkConfig§dht: DhtConfig§peer_resolver: PeerResolverConfig§overlay: OverlayConfig§public_overlay_client: PublicOverlayClientConfig§storage: StorageConfig§core_storage: CoreStorageConfig§starter: StarterConfig§blockchain_rpc_client: BlockchainRpcClientConfig§blockchain_rpc_service: BlockchainRpcServiceConfig§archive_block_provider: ArchiveBlockProviderConfig§blockchain_block_provider: BlockchainBlockProviderConfigImplementations§
Source§impl NodeBaseConfig
impl NodeBaseConfig
pub fn with_relative_paths<P: AsRef<Path>>(self, base_dir: P) -> Self
Trait Implementations§
Source§impl Clone for NodeBaseConfig
impl Clone for NodeBaseConfig
Source§fn clone(&self) -> NodeBaseConfig
fn clone(&self) -> NodeBaseConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeBaseConfig
impl Debug for NodeBaseConfig
Source§impl Default for NodeBaseConfig
impl Default for NodeBaseConfig
Source§impl<'de> Deserialize<'de> for NodeBaseConfigwhere
NodeBaseConfig: Default,
impl<'de> Deserialize<'de> for NodeBaseConfigwhere
NodeBaseConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialConfig for NodeBaseConfig
impl PartialConfig for NodeBaseConfig
Auto Trait Implementations§
impl Freeze for NodeBaseConfig
impl RefUnwindSafe for NodeBaseConfig
impl Send for NodeBaseConfig
impl Sync for NodeBaseConfig
impl Unpin for NodeBaseConfig
impl UnwindSafe for NodeBaseConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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