[][src]Enum rosu::OsuError

pub enum OsuError {
    ApprovalStatusParsing(i8),
    BuildingClient(Error),
    ChunkingResponse(Error),
    GradeParsing,
    InvalidMultiplayerMatch,
    ModParsing(ModError),
    Parsing {
        body: String,
        source: Error,
    },
    RequestError(Error),
    Response {
        body: String,
        error: APIError,
        status: StatusCode,
    },
    ServiceUnavailable(Option<String>),
}

Main error enum

Variants

ApprovalStatusParsing(i8)

Failed to parse an i8 to an ApprovalStatus.

BuildingClient(Error)

Reqwest failed to build its client.

ChunkingResponse(Error)

Error while handling response from the api

GradeParsing

Failed to parse a &str to a Grade.

InvalidMultiplayerMatch

The api response indicates that either the given match_id was invalid or that the corresponding Match was private.

ModParsing(ModError)
Parsing

Fields of Parsing

body: Stringsource: Error
RequestError(Error)
Response

Fields of Response

body: Stringerror: APIErrorstatus: StatusCode
ServiceUnavailable(Option<String>)

Trait Implementations

impl Debug for OsuError[src]

impl Display for OsuError[src]

impl Error for OsuError[src]

Auto Trait Implementations

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> Instrument for T[src]

impl<T> Instrument 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.