pub enum AddressError {
Base58(Base58Error),
CashAddr(CashAddrError),
Earth(EarthError),
}Expand description
Error concerning encoding/decoding of addresses
Variants§
Base58(Base58Error)
Base58 address error
CashAddr(CashAddrError)
CashAddr error
Earth(EarthError)
EarthAddr error
Trait Implementations§
Source§impl Clone for AddressError
impl Clone for AddressError
Source§fn clone(&self) -> AddressError
fn clone(&self) -> AddressError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressError
impl Debug for AddressError
Source§impl Display for AddressError
impl Display for AddressError
impl Eq for AddressError
Source§impl Error for AddressError
impl Error for AddressError
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 From<Base58Error> for AddressError
impl From<Base58Error> for AddressError
Source§fn from(e: Base58Error) -> AddressError
fn from(e: Base58Error) -> AddressError
Converts to this type from the input type.
Source§impl From<CashAddrError> for AddressError
impl From<CashAddrError> for AddressError
Source§fn from(e: CashAddrError) -> AddressError
fn from(e: CashAddrError) -> AddressError
Converts to this type from the input type.
Source§impl PartialEq for AddressError
impl PartialEq for AddressError
Source§fn eq(&self, other: &AddressError) -> bool
fn eq(&self, other: &AddressError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddressError
Auto Trait Implementations§
impl Freeze for AddressError
impl RefUnwindSafe for AddressError
impl Send for AddressError
impl Sync for AddressError
impl Unpin for AddressError
impl UnsafeUnpin for AddressError
impl UnwindSafe for AddressError
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