[][src]Enum tarkov::Error

pub enum Error {
    Io(Error),
    Http(Error),
    Hyper(Error),
    Json(Error),
    Status(StatusCode),
    InvalidParameters,
    UnknownAPIError(u64),
    NotAuthorized,
    Maintenance,
    BackendError,
    LoginError(LoginError),
    ProfileError(ProfileError),
    TradingError(TradingError),
    RagfairError(RagfairError),
}

Common error enum returned by most functions.

Variants

Io(Error)

A std::io error

Http(Error)

HTTP request error.

Hyper(Error)

A hyper crate error.

Json(Error)

A serde_json error.

Status(StatusCode)

Generic non-success response from the API.

InvalidParameters

Invalid or missing parameters.

UnknownAPIError(u64)

Unidentified error within the EFT API.

NotAuthorized

Not authorized to API or profile is not selected.

Maintenance

EFT API is down for maintenance.

BackendError

Backend error. No other information is given.

LoginError(LoginError)

Authentication API error.

ProfileError(ProfileError)

Profile API error.

TradingError(TradingError)

Trading API error.

RagfairError(RagfairError)

Ragfair API error.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl From<LoginError> for Error[src]

impl From<ProfileError> for Error[src]

impl From<RagfairError> for Error[src]

impl From<TradingError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,