Enum EversendError

Source
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.

§

Unauthorized

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E> Display for EversendError<E>

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E> Error for EversendError<E>
where Self: Debug + Display,

Source§

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

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ActivateWalletError> for EversendError<ActivateWalletError>

Source§

fn from(err: ActivateWalletError) -> Self

Converts to this type from the input type.
Source§

impl From<CheckEversendAccountError> for EversendError<CheckEversendAccountError>

Source§

fn from(err: CheckEversendAccountError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateBankPayoutTransactionError> for EversendError<CreateBankPayoutTransactionError>

Source§

fn from(err: CreateBankPayoutTransactionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateBeneficiaryError> for EversendError<CreateBeneficiaryError>

Source§

fn from(err: CreateBeneficiaryError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateBeneficiaryPayoutTransactionError> for EversendError<CreateBeneficiaryPayoutTransactionError>

Source§

fn from(err: CreateBeneficiaryPayoutTransactionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateCryptoAddressError> for EversendError<CreateCryptoAddressError>

Source§

fn from(err: CreateCryptoAddressError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateEversendPayoutQuotationError> for EversendError<CreateEversendPayoutQuotationError>

Source§

fn from(err: CreateEversendPayoutQuotationError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateEversendPayoutTransactionError> for EversendError<CreateEversendPayoutTransactionError>

Source§

fn from(err: CreateEversendPayoutTransactionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateExchangeError> for EversendError<CreateExchangeError>

Source§

fn from(err: CreateExchangeError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMomoAndBankPayoutQuotationError> for EversendError<CreateMomoAndBankPayoutQuotationError>

Source§

fn from(err: CreateMomoAndBankPayoutQuotationError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMomoPayoutTransactionError> for EversendError<CreateMomoPayoutTransactionError>

Source§

fn from(err: CreateMomoPayoutTransactionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateQuotationError> for EversendError<CreateQuotationError>

Source§

fn from(err: CreateQuotationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeactivateWalletError> for EversendError<DeactivateWalletError>

Source§

fn from(err: DeactivateWalletError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteBeneficiaryError> for EversendError<DeleteBeneficiaryError>

Source§

fn from(err: DeleteBeneficiaryError) -> Self

Converts to this type from the input type.
Source§

impl From<EditBeneficiaryError> for EversendError<EditBeneficiaryError>

Source§

fn from(err: EditBeneficiaryError) -> Self

Converts to this type from the input type.
Source§

impl<E> From<Error> for EversendError<E>

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FetchAssetChainsError> for EversendError<FetchAssetChainsError>

Source§

fn from(err: FetchAssetChainsError) -> Self

Converts to this type from the input type.
Source§

impl From<FetchCryptoAddressesError> for EversendError<FetchCryptoAddressesError>

Source§

fn from(err: FetchCryptoAddressesError) -> Self

Converts to this type from the input type.
Source§

impl From<FetchCryptoTransactionsError> for EversendError<FetchCryptoTransactionsError>

Source§

fn from(err: FetchCryptoTransactionsError) -> Self

Converts to this type from the input type.
Source§

impl From<GenerateApiTokenError> for EversendError<GenerateApiTokenError>

Source§

fn from(err: GenerateApiTokenError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBankDetailsError> for EversendError<GetBankDetailsError>

Source§

fn from(err: GetBankDetailsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBeneficiariesError> for EversendError<GetBeneficiariesError>

Source§

fn from(err: GetBeneficiariesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetBeneficiaryError> for EversendError<GetBeneficiaryError>

Source§

fn from(err: GetBeneficiaryError) -> Self

Converts to this type from the input type.
Source§

impl From<GetCollectionFeesError> for EversendError<GetCollectionFeesError>

Source§

fn from(err: GetCollectionFeesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetCollectionOtpError> for EversendError<GetCollectionOtpError>

Source§

fn from(err: GetCollectionOtpError) -> Self

Converts to this type from the input type.
Source§

impl From<GetDeliveryBanksError> for EversendError<GetDeliveryBanksError>

Source§

fn from(err: GetDeliveryBanksError) -> Self

Converts to this type from the input type.
Source§

impl From<GetDeliveryCountriesError> for EversendError<GetDeliveryCountriesError>

Source§

fn from(err: GetDeliveryCountriesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetMobileMoneyCollectionError> for EversendError<GetMobileMoneyCollectionError>

Source§

fn from(err: GetMobileMoneyCollectionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetProfileError> for EversendError<GetProfileError>

Source§

fn from(err: GetProfileError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTransactionError> for EversendError<GetTransactionError>

Source§

fn from(err: GetTransactionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTransactionsError> for EversendError<GetTransactionsError>

Source§

fn from(err: GetTransactionsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetWalletError> for EversendError<GetWalletError>

Source§

fn from(err: GetWalletError) -> Self

Converts to this type from the input type.
Source§

impl From<GetWalletsError> for EversendError<GetWalletsError>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,