Enum boguin::Error [] [src]

pub enum Error {
    WrongScheme,
    NoDomain,
    TooManyRedirects,
    BadResponse,
    // some variants omitted
}

HTTP specific errors.

These are used together with an ErrorKind in an io::Error. The ErrorKind is usually either InvalidInput when the user of the crate provided invalid info for a request or InvalidData when the server returned wrong or broken info.

Many other Errors are just wrapped inside an io::Error. They originate from a dependency and are not part of the public API. (They are here for information and logging and should not be dependent on in code.)

Variants

An invalid scheme was encountered in a request URL.

Currently allowed are only HTTP and HTTPS.

URL contains no domain.

TLS requires a domain name to verify the certificate. If the URL contains an IP address it has no domain.

The client tried to follow too many redirects and gave up.

Current limit is 20 redirects maximum.

There was some logic error in the response received.

Such problems may not always raise this error but instead provide more specific information from the original error.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

[src]

A short description of the error. Read more

1.0.0
[src]

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

impl Display for Error
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error