Struct hersir::controller::interactive::UserInteractionController
source · pub struct UserInteractionController {
controller: Controller,
wallets: Vec<Wallet>,
nodes: Vec<JormungandrProcess>,
legacy_nodes: Vec<JormungandrProcess>,
}
Fields§
§controller: Controller
§wallets: Vec<Wallet>
§nodes: Vec<JormungandrProcess>
§legacy_nodes: Vec<JormungandrProcess>
Implementations§
source§impl UserInteractionController
impl UserInteractionController
pub fn new(inner: Controller) -> Self
pub fn wallets(&self) -> &[Wallet]
pub fn wallets_mut(&mut self) -> &mut Vec<Wallet>
pub fn nodes(&self) -> &[JormungandrProcess]
pub fn legacy_nodes(&self) -> &[JormungandrProcess]
pub fn legacy_nodes_mut(&mut self) -> &mut Vec<JormungandrProcess>
pub fn nodes_mut(&mut self) -> &mut Vec<JormungandrProcess>
pub fn controller(&self) -> &Controller
pub fn controller_mut(&mut self) -> &mut Controller
pub fn controlled_wallet(&self, wallet: &str) -> Option<Wallet>
pub fn tally_vote( &mut self, committee_alias: &str, vote_plan_alias: &str, node_alias: &str ) -> Result<MemPoolCheck, Error>
pub fn cast_vote( &mut self, wallet_alias: &str, vote_plan_alias: &str, node_alias: &str, proposal_index: usize, choice: u8 ) -> Result<MemPoolCheck, Error>
pub fn send_transaction( &mut self, from_str: &str, to_str: &str, node_alias: &str, value: Value ) -> Result<MemPoolCheck, Error>
pub fn spawn_node( &mut self, input_params: SpawnParams ) -> Result<JormungandrProcess, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for UserInteractionController
impl Send for UserInteractionController
impl !Sync for UserInteractionController
impl Unpin for UserInteractionController
impl !UnwindSafe for UserInteractionController
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