[−][src]Enum httpbis::Error
An enum representing errors that can arise when performing operations involving an HTTP/2 connection.
Variants
IoError(Error)
The underlying IO layer raised an error
TlsError(Error)
TLS error.
CodeError(ErrorCode)
Error code error.
RstStreamReceived(ErrorCode)
RST_STREAM
received.
Address resolved to empty list.
AddrResolvedToMoreThanOneAddr(Vec<SocketAddr>)
Address resolved to more than one address.
InvalidFrame(String)
The HTTP/2 connection received an invalid HTTP/2 frame
The HPACK decoder was unable to decode a header chunk and raised an error. Any decoder error is fatal to the HTTP/2 connection as it means that the decoder contexts will be out of sync.
Indicates that the local peer has discovered an overflow in the size of one of the connection flow control window, which is a connection error.
Unknown stream id.
Cannot connect.
Malformed response.
Connection timed out.
Shutdown of local client or server
HandlerPanicked(String)
Request handler panicked.
Failed to parse frame.
InternalError(String)
Generic internal error.
NotImplemented(&'static str)
Something is not implemented
User(String)
User error
Std error
Client died
Client died, reconnect failed
Client controller died.
Channel died.
Connection died.
ClientPanicked(String)
Client panicked.
Client completed without error.
SendError(SendError)
Send failed.
StreamDead(StreamDead)
Stream dead.
Called died.
End of stream.
Expecting CONTINUATION
frame.
Expecting CONTINUATION
frame with different stream id.
CONTINUATION
frame without headers.
InitiatedStreamWithServerIdFromClient(StreamId)
Wrong stream id.
Wrong stream id.
Failed to send request to dump state.
Need something better.
Stream id windows overflow.
Connection in windows overflow.
Ping response wrong payload.
Goaway after goaway.
Got SETTINGS
ack without SETTINGS
sent.
GOAWAY
Received GOAWAY
Stream died.
Payload too large.
Request is made using HTTP/1
Listen address is not specified.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn cause(&self) -> Option<&dyn std_Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
impl From<Error> for Error
[src]
Implement the trait that allows us to automatically convert io::Error
s
into an HttpError
by wrapping the given io::Error
into an HttpError::IoError
variant.
impl From<Error> for Error
[src]
impl From<SendError> for Error
[src]
impl From<StreamDead> for Error
[src]
fn from(e: StreamDead) -> Self
[src]
impl<F> From<Timeout<F>> for Error
[src]
impl From<Void> for Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,