Enum cfx_addr::DecodingError
source · pub enum DecodingError {
InvalidLength(usize),
NoPrefix,
InvalidPrefix(String),
InvalidOption(OptionError),
ChecksumFailed(u64),
InvalidChar(char),
InvalidPadding {
from_bits: u8,
padding_bits: u8,
padding: u16,
},
VersionNotRecognized(u8),
MixedCase,
}
Expand description
Error concerning decoding of cfx_base32_addr.
Variants§
InvalidLength(usize)
Invalid length (length).
NoPrefix
Zero or multiple prefixes.
InvalidPrefix(String)
Failed to match known prefixes (prefix).
InvalidOption(OptionError)
Failed to match known options.
ChecksumFailed(u64)
Checksum failed (checksum).
InvalidChar(char)
Unexpected character (char).
InvalidPadding
Padding is invalid. Either padding_bits > from_bits or padding is non-zero.
VersionNotRecognized(u8)
Version byte was not recognized.
MixedCase
Upper and lowercase address string.
Trait Implementations§
source§impl Clone for DecodingError
impl Clone for DecodingError
source§fn clone(&self) -> DecodingError
fn clone(&self) -> DecodingError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DecodingError
impl Debug for DecodingError
source§impl Display for DecodingError
impl Display for DecodingError
source§impl Error for DecodingError
impl Error for DecodingError
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for DecodingError
impl PartialEq for DecodingError
source§fn eq(&self, other: &DecodingError) -> bool
fn eq(&self, other: &DecodingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DecodingError
impl StructuralPartialEq for DecodingError
Auto Trait Implementations§
impl RefUnwindSafe for DecodingError
impl Send for DecodingError
impl Sync for DecodingError
impl Unpin for DecodingError
impl UnwindSafe for DecodingError
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