pub struct Settings {
pub nodes: HashMap<NodeAlias, NodeSetting>,
pub wallets: Vec<Wallet>,
pub committees: Vec<CommitteeIdDef>,
pub block0: Block0Configuration,
pub explorer: Option<ExplorerConfiguration>,
pub stake_pools: HashMap<NodeAlias, StakePool>,
pub vote_plans: HashMap<VotePlanKey, VotePlanSettings>,
}
Fields§
§nodes: HashMap<NodeAlias, NodeSetting>
§wallets: Vec<Wallet>
§committees: Vec<CommitteeIdDef>
§block0: Block0Configuration
§explorer: Option<ExplorerConfiguration>
§stake_pools: HashMap<NodeAlias, StakePool>
§vote_plans: HashMap<VotePlanKey, VotePlanSettings>
Implementations§
source§impl Settings
impl Settings
pub fn new<RNG>( nodes: HashMap<NodeAlias, NodeSetting>, blockchain: &Blockchain, wallets: &[WalletTemplate], committees: &[CommitteeTemplate], explorer: &Option<ExplorerTemplate>, vote_plans: &[VotePlanTemplate], rng: &mut Random<RNG> ) -> Result<Self, Error>where RNG: RngCore + CryptoRng,
fn populate_block0_blockchain_configuration<RNG>( &mut self, blockchain: &Blockchain, rng: &mut Random<RNG> )where RNG: RngCore + CryptoRng,
fn populate_block0_blockchain_initials( &mut self, wallet_templates: &[WalletTemplate] ) -> Result<(), Error>
fn populate_trusted_peers(&mut self)
pub fn dump_private_vote_keys(&self, directory: ChildPath)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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