Enum ethaddr::ParseAddressError
source · pub enum ParseAddressError {
InvalidLength,
InvalidHexCharacter {
c: char,
index: usize,
},
ChecksumMismatch,
}
Expand description
Represents an error parsing an address from a string.
Variants§
InvalidLength
The string does not have the correct length.
InvalidHexCharacter
An invalid character was found.
ChecksumMismatch
The checksum encoded in the hex string’s case does not match the address.
Trait Implementations§
source§impl Clone for ParseAddressError
impl Clone for ParseAddressError
source§fn clone(&self) -> ParseAddressError
fn clone(&self) -> ParseAddressError
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 ParseAddressError
impl Debug for ParseAddressError
source§impl Display for ParseAddressError
impl Display for ParseAddressError
source§impl Error for ParseAddressError
impl Error for ParseAddressError
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 PartialEq for ParseAddressError
impl PartialEq for ParseAddressError
source§fn eq(&self, other: &ParseAddressError) -> bool
fn eq(&self, other: &ParseAddressError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ParseAddressError
impl StructuralEq for ParseAddressError
impl StructuralPartialEq for ParseAddressError
Auto Trait Implementations§
impl RefUnwindSafe for ParseAddressError
impl Send for ParseAddressError
impl Sync for ParseAddressError
impl Unpin for ParseAddressError
impl UnwindSafe for ParseAddressError
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