Enum anterofit::error::Error []

pub enum Error {
    Hyper(HyperError),
    Url(UrlError),
    Serialize(Box<StdError + Send + 'static>),
    Deserialize(Box<StdError + Send + 'static>),
    StdIo(IoError),
    Multipart(MultipartError),
    NoSerialize(NoSerializeError),
    Other(Box<StdError + Send + 'static>),
    Panic(RequestPanicked),
    UnknownPanic,
    ResultTaken,
}

The error type for this crate.

Can be converted from basically any error returned by any crate used here.

Variants

Error type from the hyper crate.

Associated with errors from connection issues or I/O issues with sockets.

Error type from the url crate.

Associated with errors with URL string parsing or concatenation.

Errors that occur during serialization.

Errors that occur during deserialization.

The std::io::Error type.

Associated with miscellaneous errors dealing with I/O streams.

Error type from the multipart crate.

Associated with errors writing out multipart/form-data requests.

Returned when a service method requests (de)serialization, but no (de)serializer was provided.

Check the error description for which.

The miscellaneous error type, can be anything.

Error returned when a panic occurred while completing a request.

The request head is provided for inspection.

A Request callback (on_complete() or on_request()) panicked.

Returned by methods on Call if the result was already taken.

Methods

impl Error
[src]

Map the result, boxing and wrapping the error as Error::Serialize

Map the result, boxing and wrapping the error as Error::Deserialize

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error

Formats the value using the given formatter.

impl Error for Error

A short description of the error. Read more

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

impl From<HyperError> for Error

Performs the conversion.

impl From<UrlError> for Error

Performs the conversion.

impl From<IoError> for Error

Performs the conversion.

impl From<MultipartError> for Error

Performs the conversion.

impl From<NoSerializeError> for Error

Performs the conversion.

impl From<Box<StdError + Send + 'static>> for Error

Performs the conversion.

impl From<RequestPanicked> for Error

Performs the conversion.

impl From<Canceled> for Error

Performs the conversion.