pub enum DexError {
Show 22 variants
Std(StdError),
AbstractOs(AbstractError),
AbstractSdk(AbstractSdkError),
Asset(AssetError),
AdapterError(AdapterError),
AnsHostError(AnsHostError),
UnknownDexOnThisPlatform {
dex: String,
chain: Option<String>,
},
UnknownDex(String),
ForeignDex(String),
UnsupportedAssetType(String),
TooFewAssets {},
TooManyAssets(u8),
ArgumentMismatch(String, Vec<String>),
BalancerNotSupported(String),
DexMismatch(String, String, String),
NotImplemented(String),
MaxSlippageAssertion(String, String),
IbcMsgQuery,
AssetPairingNotFound {
asset_pairing: DexAssetPairing,
},
InvalidGenerateMessage,
PoolAddressEmpty,
Unauthorized {},
}Variants§
Std(StdError)
AbstractOs(AbstractError)
AbstractSdk(AbstractSdkError)
Asset(AssetError)
AdapterError(AdapterError)
AnsHostError(AnsHostError)
UnknownDexOnThisPlatform
UnknownDex(String)
ForeignDex(String)
UnsupportedAssetType(String)
TooFewAssets
TooManyAssets(u8)
ArgumentMismatch(String, Vec<String>)
BalancerNotSupported(String)
DexMismatch(String, String, String)
NotImplemented(String)
MaxSlippageAssertion(String, String)
IbcMsgQuery
AssetPairingNotFound
Fields
§
asset_pairing: DexAssetPairingInvalidGenerateMessage
PoolAddressEmpty
Trait Implementations§
Source§impl Error for DexError
impl Error for DexError
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<AbstractError> for DexError
impl From<AbstractError> for DexError
Source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
Source§impl From<AbstractSdkError> for DexError
impl From<AbstractSdkError> for DexError
Source§fn from(source: AbstractSdkError) -> Self
fn from(source: AbstractSdkError) -> Self
Converts to this type from the input type.
Source§impl From<AdapterError> for DexError
impl From<AdapterError> for DexError
Source§fn from(source: AdapterError) -> Self
fn from(source: AdapterError) -> Self
Converts to this type from the input type.
Source§impl From<AnsHostError> for DexError
impl From<AnsHostError> for DexError
Source§fn from(source: AnsHostError) -> Self
fn from(source: AnsHostError) -> Self
Converts to this type from the input type.
Source§impl From<AssetError> for DexError
impl From<AssetError> for DexError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DexError
Auto Trait Implementations§
impl Freeze for DexError
impl !RefUnwindSafe for DexError
impl Send for DexError
impl Sync for DexError
impl Unpin for DexError
impl !UnwindSafe for DexError
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