Enum kvarn::application::Error
source · pub enum Error {
Parse(Error),
Io(Error),
H2(Error),
H3(Error),
VersionNotSupported,
UnsupportedPush,
ClientRefusedResponse,
}
Expand description
General error for application-level logic.
Mostly, the Error::Parse
, Error::Io
, and Error::H2
signal errors with the request emitted from respective library.
Variants§
Parse(Error)
A parse error from the module parse
.
Io(Error)
An input-output error was encountered while reading or writing.
H2(Error)
Available on crate feature
http2
only.h2
emitted an error
H3(Error)
Available on crate feature
http3
only.[h3
] emitted an error
VersionNotSupported
The HTTP version assumed by the client is not supported. Invalid ALPN config is a candidate.
UnsupportedPush
You tried to push a response on a HTTP/1 (or HTTP/3, for now) connection.
Use HTTP/2 instead, or check if the ResponsePipe
is HTTP/1.
Will also fail if you try to push on a pipe returned from a previous push.
ClientRefusedResponse
Client closed connection before the response could be sent.