#[non_exhaustive]pub enum P2shItemError {
Malformed,
TemplateEncoding,
PlaceholderCount {
placeholders: usize,
keys: usize,
},
Multipath,
}Expand description
Errors in the structure of a ZIP 316 Revision 2 P2SH viewing key item.
The item payload encodes a BIP 388 wallet policy: a descriptor template followed by a vector of key information entries. Only the structure of the payload is validated; full validation of the descriptor template against the BIP 388 grammar is the responsibility of consumers that interpret the policy.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Malformed
The item payload is not a well-formed encoding of a descriptor template and key information vector.
TemplateEncoding
The descriptor template is not US-ASCII.
PlaceholderCount
The key placeholders in the descriptor template do not correspond one-to-one with the entries of the key information vector.
Fields
Multipath
A key placeholder is not followed by the multipath notation required for the
containing key kind (/** in a UFVK, /* in a UIVK).
Trait Implementations§
Source§impl Clone for P2shItemError
impl Clone for P2shItemError
Source§fn clone(&self) -> P2shItemError
fn clone(&self) -> P2shItemError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for P2shItemError
Source§impl Debug for P2shItemError
impl Debug for P2shItemError
Source§impl Display for P2shItemError
impl Display for P2shItemError
impl Eq for P2shItemError
Source§impl Error for P2shItemError
Available on crate feature std only.
impl Error for P2shItemError
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for P2shItemError
impl PartialEq for P2shItemError
impl StructuralPartialEq for P2shItemError
Auto Trait Implementations§
impl Freeze for P2shItemError
impl RefUnwindSafe for P2shItemError
impl Send for P2shItemError
impl Sync for P2shItemError
impl Unpin for P2shItemError
impl UnsafeUnpin for P2shItemError
impl UnwindSafe for P2shItemError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more