pub enum CwStakingError {
Show 21 variants
Std(StdError),
AdapterError(AdapterError),
AbstractSdkError(AbstractSdkError),
AbstractError(AbstractError),
AssetError(AssetError),
AnsHostError(AnsHostError),
IbcQueryNotSupported,
UnknownStaking(String),
UnknownStakingOnThisPlatform {
staking: String,
chain: Option<String>,
},
ForeignStaking(String),
Cw1155Unsupported,
TooFewAssets {},
TooManyAssets(u8),
ArgumentMismatch(String, Vec<String>),
BalancerNotSupported(String),
DexMismatch(String, String, String),
NotImplemented(String),
MaxSlippageAssertion(String, String),
UnbondingPeriodNotSet(String),
UnbondingPeriodNotSupported(String, String),
NotSupportedPoolType(String, String),
}
Variants§
Std(StdError)
AdapterError(AdapterError)
AbstractSdkError(AbstractSdkError)
AbstractError(AbstractError)
AssetError(AssetError)
AnsHostError(AnsHostError)
IbcQueryNotSupported
UnknownStaking(String)
UnknownStakingOnThisPlatform
ForeignStaking(String)
Cw1155Unsupported
TooFewAssets
TooManyAssets(u8)
ArgumentMismatch(String, Vec<String>)
BalancerNotSupported(String)
DexMismatch(String, String, String)
NotImplemented(String)
MaxSlippageAssertion(String, String)
UnbondingPeriodNotSet(String)
UnbondingPeriodNotSupported(String, String)
NotSupportedPoolType(String, String)
Trait Implementations§
Source§impl Debug for CwStakingError
impl Debug for CwStakingError
Source§impl Display for CwStakingError
impl Display for CwStakingError
Source§impl Error for CwStakingError
impl Error for CwStakingError
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 CwStakingError
impl From<AbstractError> for CwStakingError
Source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
Source§impl From<AbstractSdkError> for CwStakingError
impl From<AbstractSdkError> for CwStakingError
Source§fn from(source: AbstractSdkError) -> Self
fn from(source: AbstractSdkError) -> Self
Converts to this type from the input type.
Source§impl From<AdapterError> for CwStakingError
impl From<AdapterError> for CwStakingError
Source§fn from(source: AdapterError) -> Self
fn from(source: AdapterError) -> Self
Converts to this type from the input type.
Source§impl From<AnsHostError> for CwStakingError
impl From<AnsHostError> for CwStakingError
Source§fn from(source: AnsHostError) -> Self
fn from(source: AnsHostError) -> Self
Converts to this type from the input type.
Source§impl From<AssetError> for CwStakingError
impl From<AssetError> for CwStakingError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<StdError> for CwStakingError
impl From<StdError> for CwStakingError
Source§impl PartialEq for CwStakingError
impl PartialEq for CwStakingError
impl StructuralPartialEq for CwStakingError
Auto Trait Implementations§
impl Freeze for CwStakingError
impl !RefUnwindSafe for CwStakingError
impl Send for CwStakingError
impl Sync for CwStakingError
impl Unpin for CwStakingError
impl !UnwindSafe for CwStakingError
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