pub struct BrowserWallet {
pub wallet_account: Option<BrowserWalletAccountInfo>,
pub wallet: BrowserWalletInfo,
}Fields§
§wallet_account: Option<BrowserWalletAccountInfo>The currently selected wallet account.
wallet: BrowserWalletInfoThe currently selected wallet.
Implementations§
Trait Implementations§
Source§impl Clone for BrowserWallet
impl Clone for BrowserWallet
Source§fn clone(&self) -> BrowserWallet
fn clone(&self) -> BrowserWallet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserWallet
impl Debug for BrowserWallet
Source§impl From<&BrowserWalletInfo> for BrowserWallet
impl From<&BrowserWalletInfo> for BrowserWallet
Source§fn from(value: &BrowserWalletInfo) -> Self
fn from(value: &BrowserWalletInfo) -> Self
Converts to this type from the input type.
Source§impl From<BrowserWalletInfo> for BrowserWallet
impl From<BrowserWalletInfo> for BrowserWallet
Source§fn from(value: BrowserWalletInfo) -> Self
fn from(value: BrowserWalletInfo) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BrowserWallet
impl PartialEq for BrowserWallet
Source§impl Wallet for BrowserWallet
impl Wallet for BrowserWallet
type Account = BrowserWalletAccountInfo
type Wallet = BrowserWalletInfo
Source§fn wallet_account(&self) -> Option<Self::Account>
fn wallet_account(&self) -> Option<Self::Account>
Returns the currently connected account, if any. Read more
Source§impl WalletExperimentalDecrypt for BrowserWallet
impl WalletExperimentalDecrypt for BrowserWallet
type Output = BrowserExperimentalDecryptOutput
fn decrypt_many<'life0, 'async_trait>(
&'life0 self,
props: Vec<ExperimentalDecryptProps>,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Output>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn decrypt<'life0, 'async_trait>(
&'life0 self,
props: ExperimentalDecryptProps,
) -> Pin<Box<dyn Future<Output = WalletResult<Self::Output>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl WalletExperimentalEncrypt for BrowserWallet
impl WalletExperimentalEncrypt for BrowserWallet
type Output = BrowserExperimentalEncryptOutput
fn encrypt_many<'life0, 'async_trait>(
&'life0 self,
props: Vec<ExperimentalEncryptProps>,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Output>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn encrypt<'life0, 'async_trait>(
&'life0 self,
props: ExperimentalEncryptProps,
) -> Pin<Box<dyn Future<Output = WalletResult<Self::Output>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl WalletStandardConnect for BrowserWallet
impl WalletStandardConnect for BrowserWallet
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Account>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Account>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect the account and automatically update the attached account.
Source§fn connect_with_options<'life0, 'async_trait>(
&'life0 mut self,
options: StandardConnectInput,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Account>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect_with_options<'life0, 'async_trait>(
&'life0 mut self,
options: StandardConnectInput,
) -> Pin<Box<dyn Future<Output = WalletResult<Vec<Self::Account>>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connect the account and automatically update the attached account.
Source§impl WalletStandardDisconnect for BrowserWallet
impl WalletStandardDisconnect for BrowserWallet
Source§fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = WalletResult<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn disconnect<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = WalletResult<()>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Disconnect from the wallet. Read more
impl Eq for BrowserWallet
impl StructuralPartialEq for BrowserWallet
Auto Trait Implementations§
impl Freeze for BrowserWallet
impl RefUnwindSafe for BrowserWallet
impl !Send for BrowserWallet
impl !Sync for BrowserWallet
impl Unpin for BrowserWallet
impl UnwindSafe for BrowserWallet
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