pub struct RemoteWalletManager { /* private fields */ }👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Collection of connected RemoteWallets
Implementations§
Source§impl RemoteWalletManager
impl RemoteWalletManager
Sourcepub fn new(usb: Arc<Mutex<HidApi>>) -> Rc<Self>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn new(usb: Arc<Mutex<HidApi>>) -> Rc<Self>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Create a new instance.
Sourcepub fn update_devices(&self) -> Result<usize, RemoteWalletError>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn update_devices(&self) -> Result<usize, RemoteWalletError>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Repopulate device list Note: this method iterates over and updates all devices
Sourcepub fn list_devices(&self) -> Vec<RemoteWalletInfo>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn list_devices(&self) -> Vec<RemoteWalletInfo>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.List connected and acknowledged wallets
Sourcepub fn get_ledger(
&self,
host_device_path: &str,
) -> Result<Rc<LedgerWallet>, RemoteWalletError>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn get_ledger( &self, host_device_path: &str, ) -> Result<Rc<LedgerWallet>, RemoteWalletError>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Get a particular wallet
Sourcepub fn get_wallet_info(&self, pubkey: &Pubkey) -> Option<RemoteWalletInfo>
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn get_wallet_info(&self, pubkey: &Pubkey) -> Option<RemoteWalletInfo>
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Get wallet info.
Sourcepub fn try_connect_polling(&self, max_polling_duration: &Duration) -> bool
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
pub fn try_connect_polling(&self, max_polling_duration: &Duration) -> bool
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.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