[][src]Enum egg_mode::error::Error

pub enum Error {
    InvalidResponse(&'static strOption<String>),
    MissingValue(&'static str),
    TwitterError(TwitterErrors),
    RateLimit(i32),
    BadStatus(StatusCode),
    NetError(Error),
    IOError(Error),
    JSONError(ParserError),
    DecodeError(DecoderError),
}

A set of errors that can occur when interacting with Twitter.

Variants

The response from Twitter was formatted incorrectly or in an unexpected manner. The enclosed values are an explanatory string and, if applicable, the input that caused the error.

This usually reflects a bug in this library, as it means I'm not parsing input right.

The response from Twitter was missing an expected value. The enclosed value was the expected parameter.

The response from Twitter returned an error structure instead of the expected response. The enclosed value was the response from Twitter.

The response returned from Twitter contained an error indicating that the rate limit for that method has been reached. The enclosed value is the Unix timestamp in UTC when the next rate-limit window will open.

The response from Twitter gave a response code that indicated an error. The enclosed value was the response code.

The web request experienced an error. The enclosed value was returned from hyper.

An error was experienced while processing the response stream. The enclosed value was returned from libstd.

An error occurred while parsing the JSON resposne. The enclosed value was returned from rustc_serialize.

An error occurred while loading the JSON response. The enclosed value was returned from rustc_serialize.

Trait Implementations

impl From<Error> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.

impl From<ParserError> for Error
[src]

Performs the conversion.

impl From<DecoderError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

Deprecating in 1.33.0

: replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

Converts the given value to a String. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.