pub enum AnsHostError {
Std(StdError),
Abstract(AbstractError),
Asset(AssetError),
Ownership(OwnershipError),
InvalidAssetCount {
min: usize,
max: usize,
provided: usize,
},
UnregisteredDex {
dex: String,
},
UnregisteredAsset {
asset: String,
},
}Variants§
Std(StdError)
Abstract(AbstractError)
Asset(AssetError)
Ownership(OwnershipError)
InvalidAssetCount
UnregisteredDex
UnregisteredAsset
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)>
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 AnsHostError
impl From<AbstractError> for AnsHostError
Source§fn from(source: AbstractError) -> Self
fn from(source: AbstractError) -> Self
Converts to this type from the input type.
Source§impl From<AssetError> for AnsHostError
impl From<AssetError> for AnsHostError
Source§fn from(source: AssetError) -> Self
fn from(source: AssetError) -> Self
Converts to this type from the input type.
Source§impl From<OwnershipError> for AnsHostError
impl From<OwnershipError> for AnsHostError
Source§fn from(source: OwnershipError) -> Self
fn from(source: OwnershipError) -> 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
impl StructuralPartialEq for AnsHostError
Auto Trait Implementations§
impl !RefUnwindSafe for AnsHostError
impl !UnwindSafe for AnsHostError
impl Freeze for AnsHostError
impl Send for AnsHostError
impl Sync for AnsHostError
impl Unpin for AnsHostError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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