pub enum ScgiHeaderParseError {
Utf8(Utf8Error),
BadHeaderVals,
BadLength,
NoLength,
}
Expand description
An error that occurred while parsing SCGI headers.
Variants§
Utf8(Utf8Error)
The length or the headers are not in UTF-8.
BadHeaderVals
Error parsing the null-terminated headers.
BadLength
CONTENT_LENGTH can’t be decoded to an integer.
NoLength
CONTENT_LENGTH header was missing.
Trait Implementations§
Source§impl Debug for ScgiHeaderParseError
impl Debug for ScgiHeaderParseError
Source§impl Display for ScgiHeaderParseError
impl Display for ScgiHeaderParseError
Source§impl Error for ScgiHeaderParseError
impl Error for ScgiHeaderParseError
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<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 ScgiHeaderParseError
impl RefUnwindSafe for ScgiHeaderParseError
impl Send for ScgiHeaderParseError
impl Sync for ScgiHeaderParseError
impl Unpin for ScgiHeaderParseError
impl UnwindSafe for ScgiHeaderParseError
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