pub struct RemoteWalletManager { /* private fields */ }
Expand description
Collection of connected RemoteWallets
Implementations
sourceimpl 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
Auto Trait Implementations
impl !RefUnwindSafe for RemoteWalletManager
impl !Send for RemoteWalletManager
impl !Sync for RemoteWalletManager
impl Unpin for RemoteWalletManager
impl !UnwindSafe for RemoteWalletManager
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more