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
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl Display for ParseError
impl Display for ParseError
sourceimpl Error for ParseError
impl Error for ParseError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<ParseError> for ParseError
impl From<ParseError> for ParseError
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ParseError) -> bool
fn ne(&self, other: &ParseError) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more