Struct jormungandr_automation::jormungandr::starter::params::builder::JormungandrBootstrapper
source · pub struct JormungandrBootstrapper {
pub node_config: Box<dyn ConfigurableNodeConfig>,
pub genesis: Option<EitherHashOrBlock0>,
pub secret: SecretModelFactory,
pub leadership_mode: LeadershipMode,
pub jormungandr_app: Option<PathBuf>,
pub rewards_history: bool,
pub verbose: bool,
}
Fields§
§node_config: Box<dyn ConfigurableNodeConfig>
§genesis: Option<EitherHashOrBlock0>
§secret: SecretModelFactory
§leadership_mode: LeadershipMode
§jormungandr_app: Option<PathBuf>
§rewards_history: bool
§verbose: bool
Implementations§
source§impl JormungandrBootstrapper
impl JormungandrBootstrapper
pub fn default_with_config(node_config: NodeConfig) -> Self
pub fn passive(self) -> Self
pub fn with_rewards_history(self) -> Self
pub fn with_leader_key(self, leader: &KeyPair<Ed25519>) -> Self
pub fn with_secret(self, secret: SecretModelFactory) -> Self
pub fn with_jormungandr(self, app: impl AsRef<Path>) -> Self
pub fn into_starter(self, temp_dir: TempDir) -> Result<Starter, Error>
pub fn with_node_config(self, node_config: NodeConfig) -> Self
pub fn with_legacy_node_config(self, node_config: LegacyNodeConfig) -> Self
pub fn with_block0_hash(self, block0_hash: Hash) -> Self
pub fn with_block0_configuration( self, block0_config: Block0Configuration ) -> Self
pub fn verbose(self) -> Self
pub fn build( self, temp_dir: &impl PathChild ) -> Result<JormungandrParams, Error>
pub fn start( self, temp_dir: TempDir ) -> Result<JormungandrProcess, StartupError>
Trait Implementations§
source§impl Debug for JormungandrBootstrapper
impl Debug for JormungandrBootstrapper
Auto Trait Implementations§
impl !RefUnwindSafe for JormungandrBootstrapper
impl !Send for JormungandrBootstrapper
impl !Sync for JormungandrBootstrapper
impl Unpin for JormungandrBootstrapper
impl !UnwindSafe for JormungandrBootstrapper
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
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request