Enum zcash_address::unified::ParseError
source · pub enum ParseError {
BothP2phkAndP2sh,
DuplicateTypecode(Typecode),
InvalidTypecodeValue(u64),
InvalidEncoding(String),
InvalidTypecodeOrder,
OnlyTransparent,
NotUnified,
UnknownPrefix(String),
}
Expand description
An error while attempting to parse a string as a Zcash address.
Variants§
BothP2phkAndP2sh
The unified container contains both P2PKH and P2SH items.
DuplicateTypecode(Typecode)
The unified container contains a duplicated typecode.
InvalidTypecodeValue(u64)
The parsed typecode exceeds the maximum allowed CompactSize value.
InvalidEncoding(String)
The string is an invalid encoding.
InvalidTypecodeOrder
The items in the unified container are not in typecode order.
OnlyTransparent
The unified container only contains transparent items.
NotUnified
The string is not Bech32m encoded, and so cannot be a unified address.
UnknownPrefix(String)
The Bech32m string has an unrecognized human-readable prefix.
Trait Implementations§
source§impl Debug for ParseError
impl Debug for ParseError
source§impl Display for ParseError
impl Display for ParseError
source§impl Error for ParseError
impl Error for ParseError
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()
source§impl From<ParseError> for ParseError
impl From<ParseError> for ParseError
source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ParseError
impl PartialEq for ParseError
source§fn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
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