pub enum NewError<W> {
NonEmptyDatabase,
Descriptor(DescriptorError),
Write(W),
}
Expand description
The error type when constructing a fresh Wallet
.
Methods new
and new_with_genesis_hash
may return this error.
Variants§
NonEmptyDatabase
Database already has data.
Descriptor(DescriptorError)
There was problem with the passed-in descriptor(s).
Write(W)
We were unable to write the wallet’s data to the persistence backend.
Trait Implementations§
source§impl<W> Error for NewError<W>where
W: Display + Debug,
impl<W> Error for NewError<W>where
W: Display + Debug,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()