pub enum AnsHostError {
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,
},
FormattingError {
object: String,
expected: String,
actual: String,
},
QueryFailed {
method_name: String,
error: StdError,
},
}
Variants§
ContractNotFound
AssetNotFound
CwAssetNotFound
ChannelNotFound
DexPairingNotFound
PoolMetadataNotFound
FormattingError
QueryFailed
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
1.30.0 · 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()
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 PartialEq for AnsHostError
impl PartialEq for AnsHostError
impl StructuralPartialEq for AnsHostError
Auto Trait Implementations§
impl Freeze for AnsHostError
impl !RefUnwindSafe for AnsHostError
impl Send for AnsHostError
impl Sync for AnsHostError
impl Unpin for AnsHostError
impl !UnwindSafe for AnsHostError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more