Struct zombienet_configuration::shared::node::NodeConfig
source · pub struct NodeConfig { /* private fields */ }
Expand description
A node configuration, with fine-grained configuration options.
Implementations§
source§impl NodeConfig
impl NodeConfig
sourcepub fn subcommand(&self) -> Option<&Command>
pub fn subcommand(&self) -> Option<&Command>
Subcommand to run the node.
sourcepub fn is_validator(&self) -> bool
pub fn is_validator(&self) -> bool
Whether the node is a validator.
sourcepub fn is_invulnerable(&self) -> bool
pub fn is_invulnerable(&self) -> bool
Whether the node keys must be added to invulnerables.
sourcepub fn is_bootnode(&self) -> bool
pub fn is_bootnode(&self) -> bool
Whether the node is a bootnode.
sourcepub fn initial_balance(&self) -> u128
pub fn initial_balance(&self) -> u128
Node initial balance present in genesis.
sourcepub fn env(&self) -> Vec<&EnvVar>
pub fn env(&self) -> Vec<&EnvVar>
Environment variables to set (inside pod for podman/k8s, inside shell for native).
sourcepub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
pub fn bootnodes_addresses(&self) -> Vec<&Multiaddr>
List of node’s bootnodes addresses to use.
sourcepub fn prometheus_port(&self) -> Option<u16>
pub fn prometheus_port(&self) -> Option<u16>
Prometheus port to use.
sourcepub fn p2p_cert_hash(&self) -> Option<&str>
pub fn p2p_cert_hash(&self) -> Option<&str>
libp2p
cert hash to use with WebRTC
transport.
sourcepub fn db_snapshot(&self) -> Option<&AssetLocation>
pub fn db_snapshot(&self) -> Option<&AssetLocation>
Database snapshot.
Trait Implementations§
source§impl Clone for NodeConfig
impl Clone for NodeConfig
source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
Returns a copy 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 NodeConfig
impl Debug for NodeConfig
source§impl<'de> Deserialize<'de> for NodeConfig
impl<'de> Deserialize<'de> for NodeConfig
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 NodeConfig
impl PartialEq for NodeConfig
source§impl Serialize for NodeConfig
impl Serialize for NodeConfig
impl StructuralPartialEq for NodeConfig
Auto Trait Implementations§
impl Freeze for NodeConfig
impl RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl UnwindSafe for NodeConfig
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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