Enum squid::download::Error [] [src]

pub enum Error {
    InvalidOption(String),
    Http(Error),
    Tls(Error),
    MissingResponseHeader(String),
    UnexpectedResponseLength {
        expected: u64,
        actual: u64,
    },
    EmptyTarget(String),
    Io(Error),
    Internal,
}

Enumerates possible download errors.

Variants

An option is not properly configured.

An HTTP-related error has occurred.

A TLS-related error has occurred.

The response from the server was missing a header.

The response from the server has different length than expected.

Fields of UnexpectedResponseLength

The expected number of bytes to receive.

The actual number of bytes received.

The target's content length is zero bytes.

A filesystem IO-related error has occurred.

An internal error has occurred.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.