pub struct RelaychainConfig { /* private fields */ }
Expand description
A relay chain configuration, composed of nodes and fine-grained configuration options.
Implementations§
source§impl RelaychainConfig
impl RelaychainConfig
sourcepub fn default_command(&self) -> Option<&Command>
pub fn default_command(&self) -> Option<&Command>
The default command used for nodes.
sourcepub fn default_image(&self) -> Option<&Image>
pub fn default_image(&self) -> Option<&Image>
The default container image used for nodes.
sourcepub fn default_resources(&self) -> Option<&Resources>
pub fn default_resources(&self) -> Option<&Resources>
The default resources limits used for nodes.
sourcepub fn default_db_snapshot(&self) -> Option<&AssetLocation>
pub fn default_db_snapshot(&self) -> Option<&AssetLocation>
The default database snapshot location that will be used for state.
sourcepub fn default_args(&self) -> Vec<&Arg>
pub fn default_args(&self) -> Vec<&Arg>
The default arguments that will be used to launch the node command.
sourcepub fn chain_spec_path(&self) -> Option<&AssetLocation>
pub fn chain_spec_path(&self) -> Option<&AssetLocation>
The location of an pre-existing chain specification for the relay chain.
sourcepub fn chain_spec_command(&self) -> Option<&str>
pub fn chain_spec_command(&self) -> Option<&str>
The full template command to genera the chain-spec
sourcepub fn chain_spec_command_is_local(&self) -> bool
pub fn chain_spec_command_is_local(&self) -> bool
Does the chain_spec_command needs to be run locally
sourcepub fn random_nominators_count(&self) -> Option<u32>
pub fn random_nominators_count(&self) -> Option<u32>
The number of random nominators
to create for chains using staking, this is used in tandem with max_nominations
to simulate the amount of nominators and nominations.
sourcepub fn max_nominations(&self) -> Option<u8>
pub fn max_nominations(&self) -> Option<u8>
The maximum number of nominations to create per nominator.
sourcepub fn runtime_genesis_patch(&self) -> Option<&Value>
pub fn runtime_genesis_patch(&self) -> Option<&Value>
The genesis overrides as a JSON value.
sourcepub fn nodes(&self) -> Vec<&NodeConfig>
pub fn nodes(&self) -> Vec<&NodeConfig>
The nodes of the relay chain.
Trait Implementations§
source§impl Clone for RelaychainConfig
impl Clone for RelaychainConfig
source§fn clone(&self) -> RelaychainConfig
fn clone(&self) -> RelaychainConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RelaychainConfig
impl Debug for RelaychainConfig
source§impl<'de> Deserialize<'de> for RelaychainConfig
impl<'de> Deserialize<'de> for RelaychainConfig
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>,
source§impl PartialEq for RelaychainConfig
impl PartialEq for RelaychainConfig
source§impl Serialize for RelaychainConfig
impl Serialize for RelaychainConfig
impl StructuralPartialEq for RelaychainConfig
Auto Trait Implementations§
impl Freeze for RelaychainConfig
impl RefUnwindSafe for RelaychainConfig
impl Send for RelaychainConfig
impl Sync for RelaychainConfig
impl Unpin for RelaychainConfig
impl UnwindSafe for RelaychainConfig
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
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)
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>
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>
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