Struct thor::cli::WalletController
source · pub struct WalletController {
config: Config,
config_manager: ConfigManager,
}
Fields§
§config: Config
§config_manager: ConfigManager
Implementations§
source§impl WalletController
impl WalletController
pub fn new(app_name: &str) -> Result<Self, Error>
pub fn new_from_manager(config_manager: ConfigManager) -> Result<Self, Error>
pub fn iter(&self) -> Iter<'_, Alias, WalletState>
pub fn connection(&self) -> Connection
pub fn config_mut(&mut self) -> &mut Config
pub fn set_default_alias(&mut self, alias: Alias) -> Result<(), Error>
pub fn is_default_alias(&mut self, alias: &Alias) -> bool
pub fn default_alias(&self) -> Option<&Alias>
pub fn alias_exists(&self, alias: &Alias) -> bool
pub fn remove_wallet(&mut self, alias: Alias) -> Result<(), Error>
pub fn wallet(&self) -> Result<WalletState, Error>
pub fn wallet_mut(&mut self) -> Result<&mut WalletState, Error>
pub fn confirm_txs( &mut self, statuses: HashMap<FragmentId, FragmentStatus> ) -> Result<(), Error>
pub fn clear_txs(&mut self) -> Result<(), Error>
pub fn add_wallet( &mut self, alias: Alias, testing: bool, data: Vec<u5>, password: &str ) -> Result<(), Error>
pub fn save_config(&self) -> Result<(), Error>
Auto Trait Implementations§
impl RefUnwindSafe for WalletController
impl Send for WalletController
impl Sync for WalletController
impl Unpin for WalletController
impl UnwindSafe for WalletController
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