Enum abstract_core::objects::ans_host::AnsHostError
source · pub enum AnsHostError {
StdError(StdError),
ContractNotFound {
contract: ContractEntry,
ans_host: Addr,
},
AssetNotFound {
asset: AssetEntry,
ans_host: Addr,
},
CwAssetNotFound {
asset: AssetInfo,
ans_host: Addr,
},
ChannelNotFound {
channel: ChannelEntry,
ans_host: Addr,
},
DexPairingNotFound {
pairing: DexAssetPairing,
ans_host: Addr,
},
PoolMetadataNotFound {
pool: UniquePoolId,
ans_host: Addr,
},
}
Variants§
StdError(StdError)
ContractNotFound
AssetNotFound
CwAssetNotFound
ChannelNotFound
DexPairingNotFound
PoolMetadataNotFound
Trait Implementations§
source§impl Debug for AnsHostError
impl Debug for AnsHostError
source§impl Display for AnsHostError
impl Display for AnsHostError
source§impl Error for AnsHostError
impl Error for AnsHostError
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<AnsHostError> for AbstractError
impl From<AnsHostError> for AbstractError
source§fn from(source: AnsHostError) -> Self
fn from(source: AnsHostError) -> Self
Converts to this type from the input type.
source§impl From<StdError> for AnsHostError
impl From<StdError> for AnsHostError
source§impl PartialEq for AnsHostError
impl PartialEq for AnsHostError
source§fn eq(&self, other: &AnsHostError) -> bool
fn eq(&self, other: &AnsHostError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnsHostError
Auto Trait Implementations§
impl RefUnwindSafe for AnsHostError
impl Send for AnsHostError
impl Sync for AnsHostError
impl Unpin for AnsHostError
impl UnwindSafe for AnsHostError
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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