Enum scgi::ScgiError [] [src]

pub enum ScgiError {
    BadLength,
    Utf8(Utf8Error),
    WrongLength(String),
    WrongHeaders,
    EOF,
    IO(Error),
}

SCGI parsing errors.

Variants

BadLength

Length can't be decoded to an integer.

Utf8(Utf8Error)

The length or the headers are not in UTF-8.

WrongLength(String)

Netstring sanity checks fail.

WrongHeaders

Error parsing the zero-terminated HTTP headers.

EOF

No more data. The socket has been closed prematurely.

IO(Error)

IoError, like when connection closed prematurely.

Trait Implementations

impl Debug for ScgiError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Error> for ScgiError
[src]

fn from(io_error: Error) -> ScgiError

Performs the conversion.

impl From<Utf8Error> for ScgiError
[src]

fn from(utf8_error: Utf8Error) -> ScgiError

Performs the conversion.

impl Display for ScgiError
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.