pub struct JormungandrParams {
node_config: Box<dyn ConfigurableNodeConfig>,
genesis: NodeBlock0,
secret_path: Option<PathBuf>,
leadership: LeadershipMode,
rewards_history: bool,
}
Fields§
§node_config: Box<dyn ConfigurableNodeConfig>
§genesis: NodeBlock0
§secret_path: Option<PathBuf>
§leadership: LeadershipMode
§rewards_history: bool
Implementations§
source§impl JormungandrParams
impl JormungandrParams
pub fn new( node_config: Box<dyn ConfigurableNodeConfig>, genesis: NodeBlock0, secret_path: Option<PathBuf>, leadership: LeadershipMode, rewards_history: bool ) -> Self
pub(crate) fn comm(&self) -> CommunicationParams
pub(crate) fn genesis(&self) -> &NodeBlock0
pub fn node_config_path(&self) -> PathBuf
pub fn refresh_instance_params(&mut self)
pub fn get_p2p_listen_port(&self) -> u16
fn regenerate_ports(&mut self)
fn recreate_log_file(&mut self)
pub fn secret_path(&self) -> &Option<PathBuf>
pub fn leadership(&self) -> LeadershipMode
pub fn rewards_history(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for JormungandrParams
impl !Send for JormungandrParams
impl !Sync for JormungandrParams
impl Unpin for JormungandrParams
impl !UnwindSafe for JormungandrParams
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