[][src]Enum twilight_http::ratelimiting::error::RatelimitError

#[non_exhaustive]pub enum RatelimitError {
    NoHeaders,
    HeaderMissing {
        name: &'static str,
    },
    HeaderNotUtf8 {
        name: &'static str,
        source: ToStrError,
        value: Vec<u8>,
    },
    ParsingBoolText {
        name: &'static str,
        source: ParseBoolError,
        text: String,
    },
    ParsingFloatText {
        name: &'static str,
        source: ParseFloatError,
        text: String,
    },
    ParsingIntText {
        name: &'static str,
        source: ParseIntError,
        text: String,
    },
}

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoHeaders
HeaderMissing

Fields of HeaderMissing

name: &'static str
HeaderNotUtf8

Fields of HeaderNotUtf8

name: &'static strsource: ToStrErrorvalue: Vec<u8>
ParsingBoolText

Fields of ParsingBoolText

name: &'static strsource: ParseBoolErrortext: String
ParsingFloatText

Fields of ParsingFloatText

name: &'static strsource: ParseFloatErrortext: String
ParsingIntText

Fields of ParsingIntText

name: &'static strsource: ParseIntErrortext: String

Trait Implementations

impl Debug for RatelimitError[src]

impl Display for RatelimitError[src]

impl Error for RatelimitError[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.

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