pub enum ScgiReadError {
BadLength,
Utf8(Utf8Error),
BadNetstring,
BadHeaders(ScgiHeaderParseError),
IO(Error),
}
Expand description
An error that occurred while reading an SCGI request.
Variants§
BadLength
Length can’t be decoded to an integer.
Utf8(Utf8Error)
The length or the headers are not in UTF-8.
BadNetstring
Netstring sanity checks fail.
BadHeaders(ScgiHeaderParseError)
Error parsing SCGI headers.
IO(Error)
IO Error.
Trait Implementations§
Source§impl Debug for ScgiReadError
impl Debug for ScgiReadError
Source§impl Display for ScgiReadError
impl Display for ScgiReadError
Source§impl Error for ScgiReadError
impl Error for ScgiReadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for ScgiReadError
impl From<Error> for ScgiReadError
Source§impl From<ScgiHeaderParseError> for ScgiReadError
impl From<ScgiHeaderParseError> for ScgiReadError
Source§fn from(source: ScgiHeaderParseError) -> Self
fn from(source: ScgiHeaderParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScgiReadError
impl !RefUnwindSafe for ScgiReadError
impl Send for ScgiReadError
impl Sync for ScgiReadError
impl Unpin for ScgiReadError
impl !UnwindSafe for ScgiReadError
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