Struct hersir::builder::NetworkBuilder
source · pub struct NetworkBuilder {
topology: Topology,
blockchain: BlockchainConfigurationOrHash,
session_settings: SessionSettings,
explorer_template: Option<ExplorerTemplate>,
wallet_templates: Vec<WalletTemplate>,
committee_templates: Vec<CommitteeTemplate>,
vote_plan_templates: Vec<VotePlanTemplate>,
observers: Vec<Weak<dyn Observer>>,
}
Fields§
§topology: Topology
§blockchain: BlockchainConfigurationOrHash
§session_settings: SessionSettings
§explorer_template: Option<ExplorerTemplate>
§wallet_templates: Vec<WalletTemplate>
§committee_templates: Vec<CommitteeTemplate>
§vote_plan_templates: Vec<VotePlanTemplate>
§observers: Vec<Weak<dyn Observer>>
Implementations§
source§impl NetworkBuilder
impl NetworkBuilder
pub fn apply_config(self, config: Config) -> Self
pub fn topology(self, topology: Topology) -> Self
pub fn blockchain_config(self, config: BlockchainConfiguration) -> Self
pub fn wallet_templates(self, wallets: Vec<WalletTemplate>) -> Self
pub fn wallet_template(self, wallet: WalletTemplate) -> Self
pub fn vote_plan_templates(self, vote_plans: Vec<VotePlanTemplate>) -> Self
pub fn committees(self, committee_templates: Vec<CommitteeTemplate>) -> Self
pub fn session_settings(self, session_settings: SessionSettings) -> Self
pub fn build(self) -> Result<Controller, ControllerError>
pub fn explorer(self, explorer: Option<ExplorerTemplate>) -> Self
pub fn blockchain_config_or_hash( self, config: BlockchainConfigurationOrHash ) -> Self
Trait Implementations§
source§impl Default for NetworkBuilder
impl Default for NetworkBuilder
source§fn default() -> NetworkBuilder
fn default() -> NetworkBuilder
Returns the “default value” for a type. Read more
source§impl Observable for NetworkBuilder
impl Observable for NetworkBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for NetworkBuilder
impl !Send for NetworkBuilder
impl !Sync for NetworkBuilder
impl Unpin for NetworkBuilder
impl !UnwindSafe for NetworkBuilder
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