pub struct WalletDescr<K, D, L2 = Layer2Empty>where
D: Descriptor<K>,
L2: Layer2Descriptor,{ /* private fields */ }
Implementations§
Source§impl<K, D, L2> WalletDescr<K, D, L2>where
D: Descriptor<K>,
L2: Layer2Descriptor,
impl<K, D, L2> WalletDescr<K, D, L2>where
D: Descriptor<K>,
L2: Layer2Descriptor,
Sourcepub fn generator(&self) -> &D
pub fn generator(&self) -> &D
Method borrowing WalletDescr::generator
field.
Sourcepub fn network(&self) -> Network
pub fn network(&self) -> Network
Method returning copy of WalletDescr::network
field.
Sourcepub fn layer2(&self) -> &L2
pub fn layer2(&self) -> &L2
Method borrowing WalletDescr::layer2
field.
Sourcepub fn _phantom(&self) -> &PhantomData<K>
pub fn _phantom(&self) -> &PhantomData<K>
Method borrowing WalletDescr::_phantom
field.
Source§impl<K, D: Descriptor<K>> WalletDescr<K, D, Layer2Empty>
impl<K, D: Descriptor<K>> WalletDescr<K, D, Layer2Empty>
pub fn new_standard(descr: D, network: Network) -> Self
Source§impl<K, D: Descriptor<K>, L2: Layer2Descriptor> WalletDescr<K, D, L2>
impl<K, D: Descriptor<K>, L2: Layer2Descriptor> WalletDescr<K, D, L2>
Trait Implementations§
Source§impl<K, D: Descriptor<K>, L2: Layer2Descriptor> CloneNoPersistence for WalletDescr<K, D, L2>
impl<K, D: Descriptor<K>, L2: Layer2Descriptor> CloneNoPersistence for WalletDescr<K, D, L2>
fn clone_no_persistence(&self) -> Self
Source§impl<K: Debug, D, L2> Debug for WalletDescr<K, D, L2>
impl<K: Debug, D, L2> Debug for WalletDescr<K, D, L2>
Source§impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Deref for WalletDescr<K, D, L2>
impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Deref for WalletDescr<K, D, L2>
Source§impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Drop for WalletDescr<K, D, L2>
impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Drop for WalletDescr<K, D, L2>
Source§impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Persisting for WalletDescr<K, D, L2>
impl<K, D: Descriptor<K>, L2: Layer2Descriptor> Persisting for WalletDescr<K, D, L2>
fn persistence(&self) -> Option<&Persistence<Self>>
fn persistence_mut(&mut self) -> Option<&mut Persistence<Self>>
fn as_mut_persistence(&mut self) -> &mut Option<Persistence<Self>>
fn load( provider: impl PersistenceProvider<Self> + 'static, autosave: bool, ) -> Result<Self, PersistenceError>
fn is_persisted(&self) -> bool
fn is_dirty(&self) -> bool
fn mark_dirty(&mut self)
fn is_autosave(&self) -> bool
fn set_autosave(&mut self)
Source§fn make_persistent(
&mut self,
provider: impl PersistenceProvider<Self> + 'static,
autosave: bool,
) -> Result<bool, PersistenceError>
fn make_persistent( &mut self, provider: impl PersistenceProvider<Self> + 'static, autosave: bool, ) -> Result<bool, PersistenceError>
Returns whether the object was persisting before this method.
fn store(&mut self) -> Result<(), PersistenceError>
Auto Trait Implementations§
impl<K, D, L2> Freeze for WalletDescr<K, D, L2>
impl<K, D, L2 = Layer2Empty> !RefUnwindSafe for WalletDescr<K, D, L2>
impl<K, D, L2> Send for WalletDescr<K, D, L2>
impl<K, D, L2> Sync for WalletDescr<K, D, L2>
impl<K, D, L2> Unpin for WalletDescr<K, D, L2>
impl<K, D, L2 = Layer2Empty> !UnwindSafe for WalletDescr<K, D, L2>
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