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.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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