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<Rc<LedgerWallet>, RemoteWalletError>
pub fn get_ledger( &self, host_device_path: &str, ) -> Result<Rc<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 !Freeze for RemoteWalletManager
impl !RefUnwindSafe for RemoteWalletManager
impl !Send for RemoteWalletManager
impl !Sync for RemoteWalletManager
impl Unpin for RemoteWalletManager
impl !UnwindSafe for RemoteWalletManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more