pub struct MultiHolder<K = XpubDerivable, U = MemUtxos>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly,
U: UtxoSet,{ /* private fields */ }Implementations§
Source§impl<K, U> MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly,
U: UtxoSet,
impl<K, U> MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly,
U: UtxoSet,
pub fn new() -> Self
pub fn with(id: DescrId, holder: Holder<K, U>) -> Self
pub fn wallet_ids(&self) -> impl Iterator<Item = DescrId> + use<'_, K, U>
pub fn upsert(&mut self, id: DescrId, holder: Holder<K, U>)
pub fn remove(&mut self, id: DescrId) -> Option<Holder<K, U>>
pub fn switch(&mut self, new: DescrId)
pub fn current(&self) -> &Holder<K, U>
pub fn current_mut(&mut self) -> &mut Holder<K, U>
Trait Implementations§
Source§impl<K, U> Clone for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly + Clone,
U: UtxoSet + Clone,
impl<K, U> Clone for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly + Clone,
U: UtxoSet + Clone,
Source§fn clone(&self) -> MultiHolder<K, U>
fn clone(&self) -> MultiHolder<K, U>
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<K, U> Default for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly + Default,
U: UtxoSet + Default,
impl<K, U> Default for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly + Default,
U: UtxoSet + Default,
Source§fn default() -> MultiHolder<K, U>
fn default() -> MultiHolder<K, U>
Returns the “default value” for a type. Read more
Source§impl<K, U> OwnerProvider for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly,
U: UtxoSet,
impl<K, U> OwnerProvider for MultiHolder<K, U>where
K: DeriveSet<Legacy = K, Compr = K, XOnly = K> + DeriveLegacy + DeriveCompr + DeriveXOnly,
U: UtxoSet,
Auto Trait Implementations§
impl<K, U> Freeze for MultiHolder<K, U>
impl<K, U> RefUnwindSafe for MultiHolder<K, U>where
U: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, U> Send for MultiHolder<K, U>
impl<K, U> Sync for MultiHolder<K, U>
impl<K, U> Unpin for MultiHolder<K, U>
impl<K, U> UnwindSafe for MultiHolder<K, U>where
U: UnwindSafe,
K: UnwindSafe,
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