pub enum UsdcError {
UnsupportedChain(NamedChain),
AddressParseError {
address_str: String,
source: FromHexError,
},
}Expand description
Represents errors that can occur when retrieving a USDC address.
Variants§
UnsupportedChain(NamedChain)
Indicates that a USDC address is not available or known for the specified chain.
AddressParseError
Indicates that a known address string failed to parse into a valid Address.
This should ideally not happen if the constants are well-formed.
Fields
§
source: FromHexErrorThe underlying parsing error.
Trait Implementations§
Source§impl Error for UsdcError
impl Error for UsdcError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl Freeze for UsdcError
impl RefUnwindSafe for UsdcError
impl Send for UsdcError
impl Sync for UsdcError
impl Unpin for UsdcError
impl UnwindSafe for UsdcError
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