pub struct WalletStorage(/* private fields */);
Expand description
Storage used by the crate::WalletAdapter
Implementations§
Source§impl WalletStorage
impl WalletStorage
Sourcepub fn clone_inner(&self) -> StorageType
pub fn clone_inner(&self) -> StorageType
Clone the inner field as Rc<RefCell<HashMap<blake3::Hash, Wallet>>>
Sourcepub fn get_wallets(&self) -> Vec<Wallet>
pub fn get_wallets(&self) -> Vec<Wallet>
Get all the wallets from storage
Sourcepub fn get_wallet(&self, wallet_name: &str) -> Option<Wallet>
pub fn get_wallet(&self, wallet_name: &str) -> Option<Wallet>
Get a certain wallet by name from storage
Trait Implementations§
Source§impl Clone for WalletStorage
impl Clone for WalletStorage
Source§fn clone(&self) -> WalletStorage
fn clone(&self) -> WalletStorage
Returns a copy 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 WalletStorage
impl Debug for WalletStorage
Source§impl Default for WalletStorage
impl Default for WalletStorage
Source§fn default() -> WalletStorage
fn default() -> WalletStorage
Returns the “default value” for a type. Read more
Source§impl PartialEq for WalletStorage
impl PartialEq for WalletStorage
impl Eq for WalletStorage
impl StructuralPartialEq for WalletStorage
Auto Trait Implementations§
impl Freeze for WalletStorage
impl !RefUnwindSafe for WalletStorage
impl !Send for WalletStorage
impl !Sync for WalletStorage
impl Unpin for WalletStorage
impl !UnwindSafe for WalletStorage
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