Struct hersir::controller::MonitorController
source · pub struct MonitorController {
inner: Controller,
progress_bar: Arc<MultiProgress>,
session_settings: SessionSettings,
progress_bar_thread: Option<JoinHandle<()>>,
}
Fields§
§inner: Controller
§progress_bar: Arc<MultiProgress>
§session_settings: SessionSettings
§progress_bar_thread: Option<JoinHandle<()>>
Implementations§
source§impl MonitorController
impl MonitorController
pub fn new_with_progress_bar( controller: InnerController, session_settings: SessionSettings, progress_bar: Arc<MultiProgress> ) -> Self
pub fn new( controller: InnerController, session_settings: SessionSettings ) -> Result<Self, Error>
pub fn stake_pool(&mut self, node_alias: &str) -> Result<StakePool, Error>
pub fn working_directory(&self) -> &TestingDirectory
pub fn block0_conf(&self) -> Block0Configuration
pub fn defined_wallets( &self ) -> impl Iterator<Item = (WalletAlias, &WalletSetting)>
pub fn controlled_wallets(&mut self) -> Vec<Wallet>
pub fn settings(&self) -> &Settings
pub fn defined_vote_plans(&self) -> Vec<VotePlanDef>
pub fn session_settings(&self) -> &SessionSettings
pub fn add_to_progress_bar(&mut self, pb: ProgressBar) -> ProgressBar
pub fn block0_file(&self) -> PathBuf
pub fn controlled_wallet(&self, wallet: &str) -> Result<Wallet, Error>
pub fn new_spawn_params(&self, node_alias: &str) -> SpawnParams
fn node_dir(&self, alias: &str) -> PathBuf
pub fn build_progress_bar( &mut self, alias: &str, listen: SocketAddr ) -> ProgressBarController
pub fn spawn_node( &mut self, node_alias: &str, leadership_mode: LeadershipMode, persistence_mode: PersistenceMode ) -> Result<Node, Error>
pub fn spawn_node_custom( &mut self, input_params: SpawnParams ) -> Result<Node, Error>
pub fn spawn_legacy_node( &mut self, input_params: SpawnParams, version: &Version ) -> Result<LegacyNode, Error>
pub fn monitor_nodes(&mut self)
pub fn finalize(self)
Trait Implementations§
source§impl From<MonitorController> for Controller
impl From<MonitorController> for Controller
source§fn from(monitor: MonitorController) -> Self
fn from(monitor: MonitorController) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for MonitorController
impl Send for MonitorController
impl Sync for MonitorController
impl Unpin for MonitorController
impl !UnwindSafe for MonitorController
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