pub enum AddressParseError {
ContractAddressError(ContractAddressParseError),
AccountAddressError(AccountAddressParseError),
}
Expand description
Error that can occur when parsing an Address
from a string.
Variants§
ContractAddressError(ContractAddressParseError)
AccountAddressError(AccountAddressParseError)
Trait Implementations§
source§impl Debug for AddressParseError
impl Debug for AddressParseError
source§impl Display for AddressParseError
impl Display for AddressParseError
source§impl Error for AddressParseError
impl Error for AddressParseError
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<AccountAddressParseError> for AddressParseError
impl From<AccountAddressParseError> for AddressParseError
source§fn from(source: AccountAddressParseError) -> Self
fn from(source: AccountAddressParseError) -> Self
Converts to this type from the input type.
source§impl From<ContractAddressParseError> for AddressParseError
impl From<ContractAddressParseError> for AddressParseError
source§fn from(source: ContractAddressParseError) -> Self
fn from(source: ContractAddressParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AddressParseError
impl RefUnwindSafe for AddressParseError
impl Send for AddressParseError
impl Sync for AddressParseError
impl Unpin for AddressParseError
impl UnwindSafe for AddressParseError
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