pub struct RemoteWalletManager { /* private fields */ }
Expand description
Collection of connected RemoteWallets
Implementations§
source§impl RemoteWalletManager
impl RemoteWalletManager
sourcepub fn update_devices(&self) -> Result<usize, RemoteWalletError>
pub fn update_devices(&self) -> Result<usize, RemoteWalletError>
Repopulate device list Note: this method iterates over and updates all devices
sourcepub fn list_devices(&self) -> Vec<RemoteWalletInfo> ⓘ
pub fn list_devices(&self) -> Vec<RemoteWalletInfo> ⓘ
List connected and acknowledged wallets
sourcepub fn get_ledger(
&self,
host_device_path: &str
) -> Result<Arc<LedgerWallet>, RemoteWalletError>
pub fn get_ledger( &self, host_device_path: &str ) -> Result<Arc<LedgerWallet>, RemoteWalletError>
Get a particular wallet
sourcepub fn get_wallet_info(&self, pubkey: &Pubkey) -> Option<RemoteWalletInfo>
pub fn get_wallet_info(&self, pubkey: &Pubkey) -> Option<RemoteWalletInfo>
Get wallet info.
sourcepub fn try_connect_polling(&self, max_polling_duration: &Duration) -> bool
pub fn try_connect_polling(&self, max_polling_duration: &Duration) -> bool
Update devices in maximum max_polling_duration
if it doesn’t succeed