parent
82141a8201
commit
a8efeaa0fb
@ -107,7 +107,7 @@ impl<T> Persisted<T> {
|
|||||||
Ok(T::load(db, params)?.map(|inner| Self { inner }))
|
Ok(T::load(db, params)?.map(|inner| Self { inner }))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Contruct a persisted `T` from an async `Db`.
|
/// Construct a persisted `T` from an async `Db`.
|
||||||
pub async fn load_async<Db>(
|
pub async fn load_async<Db>(
|
||||||
db: &mut Db,
|
db: &mut Db,
|
||||||
params: T::LoadParams,
|
params: T::LoadParams,
|
||||||
|
@ -150,7 +150,7 @@ impl LoadParams {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if
|
/// Checks that `descriptor` of `keychain` matches this, and extracts private keys (if
|
||||||
/// avaliable).
|
/// available).
|
||||||
pub fn descriptors<D>(mut self, descriptor: D, change_descriptor: D) -> Self
|
pub fn descriptors<D>(mut self, descriptor: D, change_descriptor: D) -> Self
|
||||||
where
|
where
|
||||||
D: IntoWalletDescriptor + 'static,
|
D: IntoWalletDescriptor + 'static,
|
||||||
|
@ -154,7 +154,7 @@ impl<E: fmt::Debug + fmt::Display> std::error::Error for LoadWithPersistError<E>
|
|||||||
pub enum CreateWithPersistError<E> {
|
pub enum CreateWithPersistError<E> {
|
||||||
/// Error from persistence.
|
/// Error from persistence.
|
||||||
Persist(E),
|
Persist(E),
|
||||||
/// Occurs when the loaded changeset cannot contruct [`Wallet`].
|
/// Occurs when the loaded changeset cannot construct [`Wallet`].
|
||||||
Descriptor(DescriptorError),
|
Descriptor(DescriptorError),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user