pub enum Error {
StreamAlreadyDone,
StreamAlreadyClosed,
SequenceError,
InvalidRecordVersion,
InvalidRoleNumber,
UnknownRecordType(u16, u8),
IoError(Error),
}Expand description
Errors that can be returned by calls to process.
Variants§
StreamAlreadyDone
The input stream was already closed and can not be reused. This indicates
an error within the call sequence, like calling process twice or the
web-server sending more data after closing StdIn or Data.
StreamAlreadyClosed
write was called on an output stream that was already closed by a call to
close.
SequenceError
The web-server violated the FastCGI specification. For example by sending a
StdIn record before sending a BeginRequest record.
InvalidRecordVersion
The record version is not 1. This should never happen since the FastCGI specification does not define any other record versions.
InvalidRoleNumber
The web-server sent an unknown role number. This is most likely a bug in the FastCGI implementation of the web-server.
UnknownRecordType(u16, u8)
This error is never returned to the user of the library. It is internally
handled by the tokio-fastcgi crate. The library returns a
FCGI_UNKNOWN_TYPE record to the web-server.
IoError(Error)
An IoError occurred. Most likely the connection to the web-server got lost or
was interrupted. Some I/O errors are handled by tokio-fastcgi. If the
web-server closes the FastCGI connection after all requests have been
processed no error is returned and the EOF error is just swallowed.