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

Create a value of Error::Deserialize

Trait Implementations

impl Error for Error
[src]

Raised when there is general error when deserializing a type. Read more

Raised when a Deserialize receives a type different from what it was expecting. Read more

Raised when a Deserialize receives a value of the right type but that is wrong for some other reason. Read more

Raised when deserializing a sequence or map and the input data contains too many or too few elements. Read more

Raised when a Deserialize enum type received a variant with an unrecognized name. Read more

Raised when a Deserialize struct type received a field with an unrecognized name. Read more

Raised when a Deserialize struct type expected to receive a required field with a particular name but that field was not present in the input. Read more

Raised when a Deserialize struct type received more than one of the same field. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

This method is soft-deprecated. 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.

Auto Trait Implementations

impl Send for Error

impl !Sync for Error