pub struct GlobalSettings { /* private fields */ }
Expand description
Global settings applied to an entire network.
Implementations§
Source§impl GlobalSettings
impl GlobalSettings
Sourcepub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
pub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
External bootnode address.
Sourcepub fn network_spawn_timeout(&self) -> Duration
pub fn network_spawn_timeout(&self) -> Duration
Global spawn timeout in seconds.
Sourcepub fn node_spawn_timeout(&self) -> Duration
pub fn node_spawn_timeout(&self) -> Duration
Individual node spawn timeout in seconds.
Sourcepub fn local_ip(&self) -> Option<&IpAddr>
pub fn local_ip(&self) -> Option<&IpAddr>
Local IP used to expose local services (including RPC, metrics and monitoring).
Sourcepub fn base_dir(&self) -> Option<&Path>
pub fn base_dir(&self) -> Option<&Path>
Base directory to use (instead a random tmp one) All the artifacts will be created in this directory.
Sourcepub fn spawn_concurrency(&self) -> Option<usize>
pub fn spawn_concurrency(&self) -> Option<usize>
Number of concurrent spawning process to launch
Trait Implementations§
Source§impl Clone for GlobalSettings
impl Clone for GlobalSettings
Source§fn clone(&self) -> GlobalSettings
fn clone(&self) -> GlobalSettings
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 GlobalSettings
impl Debug for GlobalSettings
Source§impl Default for GlobalSettings
impl Default for GlobalSettings
Source§impl<'de> Deserialize<'de> for GlobalSettings
impl<'de> Deserialize<'de> for GlobalSettings
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 PartialEq for GlobalSettings
impl PartialEq for GlobalSettings
Source§impl Serialize for GlobalSettings
impl Serialize for GlobalSettings
impl StructuralPartialEq for GlobalSettings
Auto Trait Implementations§
impl Freeze for GlobalSettings
impl RefUnwindSafe for GlobalSettings
impl Send for GlobalSettings
impl Sync for GlobalSettings
impl Unpin for GlobalSettings
impl UnwindSafe for GlobalSettings
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