pub enum EversendError<E> {
ApiTokenMissing,
Unauthorized,
Operation(E),
RequestError(Error),
}
Expand description
An Eversend SDK error.
Variants§
ApiTokenMissing
API token was not found on the eversend client.
An unauthorized response was received from the Eversend API.
Operation(E)
RequestError(Error)
An unhandled error occurred with the API request.
Trait Implementations§
Source§impl<E: Debug> Debug for EversendError<E>
impl<E: Debug> Debug for EversendError<E>
Source§impl<E> Display for EversendError<E>
impl<E> Display for EversendError<E>
Source§impl<E> Error for EversendError<E>
impl<E> Error for EversendError<E>
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<ActivateWalletError> for EversendError<ActivateWalletError>
impl From<ActivateWalletError> for EversendError<ActivateWalletError>
Source§fn from(err: ActivateWalletError) -> Self
fn from(err: ActivateWalletError) -> Self
Converts to this type from the input type.
Source§impl From<CheckEversendAccountError> for EversendError<CheckEversendAccountError>
impl From<CheckEversendAccountError> for EversendError<CheckEversendAccountError>
Source§fn from(err: CheckEversendAccountError) -> Self
fn from(err: CheckEversendAccountError) -> Self
Converts to this type from the input type.
Source§impl From<CreateBankPayoutTransactionError> for EversendError<CreateBankPayoutTransactionError>
impl From<CreateBankPayoutTransactionError> for EversendError<CreateBankPayoutTransactionError>
Source§fn from(err: CreateBankPayoutTransactionError) -> Self
fn from(err: CreateBankPayoutTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<CreateBeneficiaryError> for EversendError<CreateBeneficiaryError>
impl From<CreateBeneficiaryError> for EversendError<CreateBeneficiaryError>
Source§fn from(err: CreateBeneficiaryError) -> Self
fn from(err: CreateBeneficiaryError) -> Self
Converts to this type from the input type.
Source§impl From<CreateBeneficiaryPayoutTransactionError> for EversendError<CreateBeneficiaryPayoutTransactionError>
impl From<CreateBeneficiaryPayoutTransactionError> for EversendError<CreateBeneficiaryPayoutTransactionError>
Source§fn from(err: CreateBeneficiaryPayoutTransactionError) -> Self
fn from(err: CreateBeneficiaryPayoutTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<CreateCryptoAddressError> for EversendError<CreateCryptoAddressError>
impl From<CreateCryptoAddressError> for EversendError<CreateCryptoAddressError>
Source§fn from(err: CreateCryptoAddressError) -> Self
fn from(err: CreateCryptoAddressError) -> Self
Converts to this type from the input type.
Source§impl From<CreateEversendPayoutQuotationError> for EversendError<CreateEversendPayoutQuotationError>
impl From<CreateEversendPayoutQuotationError> for EversendError<CreateEversendPayoutQuotationError>
Source§fn from(err: CreateEversendPayoutQuotationError) -> Self
fn from(err: CreateEversendPayoutQuotationError) -> Self
Converts to this type from the input type.
Source§impl From<CreateEversendPayoutTransactionError> for EversendError<CreateEversendPayoutTransactionError>
impl From<CreateEversendPayoutTransactionError> for EversendError<CreateEversendPayoutTransactionError>
Source§fn from(err: CreateEversendPayoutTransactionError) -> Self
fn from(err: CreateEversendPayoutTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<CreateExchangeError> for EversendError<CreateExchangeError>
impl From<CreateExchangeError> for EversendError<CreateExchangeError>
Source§fn from(err: CreateExchangeError) -> Self
fn from(err: CreateExchangeError) -> Self
Converts to this type from the input type.
Source§impl From<CreateMomoAndBankPayoutQuotationError> for EversendError<CreateMomoAndBankPayoutQuotationError>
impl From<CreateMomoAndBankPayoutQuotationError> for EversendError<CreateMomoAndBankPayoutQuotationError>
Source§fn from(err: CreateMomoAndBankPayoutQuotationError) -> Self
fn from(err: CreateMomoAndBankPayoutQuotationError) -> Self
Converts to this type from the input type.
Source§impl From<CreateMomoPayoutTransactionError> for EversendError<CreateMomoPayoutTransactionError>
impl From<CreateMomoPayoutTransactionError> for EversendError<CreateMomoPayoutTransactionError>
Source§fn from(err: CreateMomoPayoutTransactionError) -> Self
fn from(err: CreateMomoPayoutTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<CreateQuotationError> for EversendError<CreateQuotationError>
impl From<CreateQuotationError> for EversendError<CreateQuotationError>
Source§fn from(err: CreateQuotationError) -> Self
fn from(err: CreateQuotationError) -> Self
Converts to this type from the input type.
Source§impl From<DeactivateWalletError> for EversendError<DeactivateWalletError>
impl From<DeactivateWalletError> for EversendError<DeactivateWalletError>
Source§fn from(err: DeactivateWalletError) -> Self
fn from(err: DeactivateWalletError) -> Self
Converts to this type from the input type.
Source§impl From<DeleteBeneficiaryError> for EversendError<DeleteBeneficiaryError>
impl From<DeleteBeneficiaryError> for EversendError<DeleteBeneficiaryError>
Source§fn from(err: DeleteBeneficiaryError) -> Self
fn from(err: DeleteBeneficiaryError) -> Self
Converts to this type from the input type.
Source§impl From<EditBeneficiaryError> for EversendError<EditBeneficiaryError>
impl From<EditBeneficiaryError> for EversendError<EditBeneficiaryError>
Source§fn from(err: EditBeneficiaryError) -> Self
fn from(err: EditBeneficiaryError) -> Self
Converts to this type from the input type.
Source§impl<E> From<Error> for EversendError<E>
impl<E> From<Error> for EversendError<E>
Source§impl From<FetchAssetChainsError> for EversendError<FetchAssetChainsError>
impl From<FetchAssetChainsError> for EversendError<FetchAssetChainsError>
Source§fn from(err: FetchAssetChainsError) -> Self
fn from(err: FetchAssetChainsError) -> Self
Converts to this type from the input type.
Source§impl From<FetchCryptoAddressesError> for EversendError<FetchCryptoAddressesError>
impl From<FetchCryptoAddressesError> for EversendError<FetchCryptoAddressesError>
Source§fn from(err: FetchCryptoAddressesError) -> Self
fn from(err: FetchCryptoAddressesError) -> Self
Converts to this type from the input type.
Source§impl From<FetchCryptoTransactionsError> for EversendError<FetchCryptoTransactionsError>
impl From<FetchCryptoTransactionsError> for EversendError<FetchCryptoTransactionsError>
Source§fn from(err: FetchCryptoTransactionsError) -> Self
fn from(err: FetchCryptoTransactionsError) -> Self
Converts to this type from the input type.
Source§impl From<GenerateApiTokenError> for EversendError<GenerateApiTokenError>
impl From<GenerateApiTokenError> for EversendError<GenerateApiTokenError>
Source§fn from(err: GenerateApiTokenError) -> Self
fn from(err: GenerateApiTokenError) -> Self
Converts to this type from the input type.
Source§impl From<GetBankDetailsError> for EversendError<GetBankDetailsError>
impl From<GetBankDetailsError> for EversendError<GetBankDetailsError>
Source§fn from(err: GetBankDetailsError) -> Self
fn from(err: GetBankDetailsError) -> Self
Converts to this type from the input type.
Source§impl From<GetBeneficiariesError> for EversendError<GetBeneficiariesError>
impl From<GetBeneficiariesError> for EversendError<GetBeneficiariesError>
Source§fn from(err: GetBeneficiariesError) -> Self
fn from(err: GetBeneficiariesError) -> Self
Converts to this type from the input type.
Source§impl From<GetBeneficiaryError> for EversendError<GetBeneficiaryError>
impl From<GetBeneficiaryError> for EversendError<GetBeneficiaryError>
Source§fn from(err: GetBeneficiaryError) -> Self
fn from(err: GetBeneficiaryError) -> Self
Converts to this type from the input type.
Source§impl From<GetCollectionFeesError> for EversendError<GetCollectionFeesError>
impl From<GetCollectionFeesError> for EversendError<GetCollectionFeesError>
Source§fn from(err: GetCollectionFeesError) -> Self
fn from(err: GetCollectionFeesError) -> Self
Converts to this type from the input type.
Source§impl From<GetCollectionOtpError> for EversendError<GetCollectionOtpError>
impl From<GetCollectionOtpError> for EversendError<GetCollectionOtpError>
Source§fn from(err: GetCollectionOtpError) -> Self
fn from(err: GetCollectionOtpError) -> Self
Converts to this type from the input type.
Source§impl From<GetDeliveryBanksError> for EversendError<GetDeliveryBanksError>
impl From<GetDeliveryBanksError> for EversendError<GetDeliveryBanksError>
Source§fn from(err: GetDeliveryBanksError) -> Self
fn from(err: GetDeliveryBanksError) -> Self
Converts to this type from the input type.
Source§impl From<GetDeliveryCountriesError> for EversendError<GetDeliveryCountriesError>
impl From<GetDeliveryCountriesError> for EversendError<GetDeliveryCountriesError>
Source§fn from(err: GetDeliveryCountriesError) -> Self
fn from(err: GetDeliveryCountriesError) -> Self
Converts to this type from the input type.
Source§impl From<GetMobileMoneyCollectionError> for EversendError<GetMobileMoneyCollectionError>
impl From<GetMobileMoneyCollectionError> for EversendError<GetMobileMoneyCollectionError>
Source§fn from(err: GetMobileMoneyCollectionError) -> Self
fn from(err: GetMobileMoneyCollectionError) -> Self
Converts to this type from the input type.
Source§impl From<GetProfileError> for EversendError<GetProfileError>
impl From<GetProfileError> for EversendError<GetProfileError>
Source§fn from(err: GetProfileError) -> Self
fn from(err: GetProfileError) -> Self
Converts to this type from the input type.
Source§impl From<GetTransactionError> for EversendError<GetTransactionError>
impl From<GetTransactionError> for EversendError<GetTransactionError>
Source§fn from(err: GetTransactionError) -> Self
fn from(err: GetTransactionError) -> Self
Converts to this type from the input type.
Source§impl From<GetTransactionsError> for EversendError<GetTransactionsError>
impl From<GetTransactionsError> for EversendError<GetTransactionsError>
Source§fn from(err: GetTransactionsError) -> Self
fn from(err: GetTransactionsError) -> Self
Converts to this type from the input type.
Source§impl From<GetWalletError> for EversendError<GetWalletError>
impl From<GetWalletError> for EversendError<GetWalletError>
Source§fn from(err: GetWalletError) -> Self
fn from(err: GetWalletError) -> Self
Converts to this type from the input type.
Source§impl From<GetWalletsError> for EversendError<GetWalletsError>
impl From<GetWalletsError> for EversendError<GetWalletsError>
Source§fn from(err: GetWalletsError) -> Self
fn from(err: GetWalletsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for EversendError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for EversendError<E>
impl<E> Send for EversendError<E>where
E: Send,
impl<E> Sync for EversendError<E>where
E: Sync,
impl<E> Unpin for EversendError<E>where
E: Unpin,
impl<E> !UnwindSafe for EversendError<E>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.