pub enum ScgiError {
BadLength,
Utf8(Utf8Error),
WrongLength(String),
WrongHeaders,
EOF,
IO(Error),
}
Expand description
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§
Auto Trait Implementations§
impl Freeze for ScgiError
impl !RefUnwindSafe for ScgiError
impl Send for ScgiError
impl Sync for ScgiError
impl Unpin for ScgiError
impl !UnwindSafe for ScgiError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more