pub enum HttpConversionError {
MissingFastcgiParam {
name: &'static str,
},
InvalidHttpMethod(InvalidMethod),
InvalidHttpUri(InvalidUri),
InvalidHttpHeaderName(InvalidHeaderName),
InvalidHttpHeaderValue(InvalidHeaderValue),
InvalidHttpStatusCode(InvalidStatusCode),
InvalidHttpMessage(Error),
MalformedHttpResponse {
message: &'static str,
},
}Available on crate feature
http only.Expand description
Error types that can occur while converting between FastCGI and HTTP types.
Variants§
MissingFastcgiParam
Required FastCGI param is missing during HTTP conversion.
InvalidHttpMethod(InvalidMethod)
Invalid HTTP method during conversion.
InvalidHttpUri(InvalidUri)
Invalid HTTP URI during conversion.
InvalidHttpHeaderName(InvalidHeaderName)
Invalid HTTP header name during conversion.
InvalidHttpHeaderValue(InvalidHeaderValue)
Invalid HTTP header value during conversion.
InvalidHttpStatusCode(InvalidStatusCode)
Invalid HTTP status code during conversion.
InvalidHttpMessage(Error)
Invalid HTTP message constructed by builder.
MalformedHttpResponse
CGI response payload could not be parsed into headers and body.
Trait Implementations§
Source§impl Debug for HttpConversionError
impl Debug for HttpConversionError
Source§impl Display for HttpConversionError
impl Display for HttpConversionError
Source§impl Error for HttpConversionError
impl Error for HttpConversionError
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 HttpConversionError
impl From<Error> for HttpConversionError
Source§impl From<InvalidHeaderName> for HttpConversionError
impl From<InvalidHeaderName> for HttpConversionError
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderValue> for HttpConversionError
impl From<InvalidHeaderValue> for HttpConversionError
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
Source§impl From<InvalidMethod> for HttpConversionError
impl From<InvalidMethod> for HttpConversionError
Source§fn from(source: InvalidMethod) -> Self
fn from(source: InvalidMethod) -> Self
Converts to this type from the input type.
Source§impl From<InvalidStatusCode> for HttpConversionError
impl From<InvalidStatusCode> for HttpConversionError
Source§fn from(source: InvalidStatusCode) -> Self
fn from(source: InvalidStatusCode) -> Self
Converts to this type from the input type.
Source§impl From<InvalidUri> for HttpConversionError
impl From<InvalidUri> for HttpConversionError
Source§fn from(source: InvalidUri) -> Self
fn from(source: InvalidUri) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HttpConversionError
impl RefUnwindSafe for HttpConversionError
impl Send for HttpConversionError
impl Sync for HttpConversionError
impl Unpin for HttpConversionError
impl UnsafeUnpin for HttpConversionError
impl UnwindSafe for HttpConversionError
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