Enum httpbis::error::ErrorCode [−][src]
pub enum ErrorCode { NoError, ProtocolError, InternalError, FlowControlError, SettingsTimeout, StreamClosed, FrameSizeError, RefusedStream, Cancel, CompressionError, ConnectError, EnhanceYourCalm, InadequateSecurity, Http11Required, }
The enum represents an error code that are used in RST_STREAM
and GOAWAY
frames.
These are defined in Section 7 of the HTTP/2
spec.
Variants
NoError
The associated condition is not a result of an error. For example, a GOAWAY might include this code to indicate graceful shutdown of a connection.
ProtocolError
The endpoint detected an unspecific protocol error. This error is for use when a more specific error code is not available.
InternalError
The endpoint encountered an unexpected internal error.
FlowControlError
The endpoint detected that its peer violated the flow-control protocol.
SettingsTimeout
The endpoint sent a SETTINGS frame but did not receive a response in a timely manner. See Section 6.5.3 ("Settings Synchronization").
StreamClosed
The endpoint received a frame after a stream was half-closed.
FrameSizeError
The endpoint received a frame with an invalid size.
RefusedStream
The endpoint refused the stream prior to performing any application processing (see Section 8.1.4 for details).
Cancel
Used by the endpoint to indicate that the stream is no longer needed.
CompressionError
The endpoint is unable to maintain the header compression context for the connection.
ConnectError
The connection established in response to a CONNECT request (Section 8.3) was reset or abnormally closed.
EnhanceYourCalm
The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.
InadequateSecurity
The underlying transport has properties that do not meet minimum security requirements (see Section 9.2).
Http11Required
The endpoint requires that HTTP/1.1 be used instead of HTTP/2.
Trait Implementations
impl Debug for ErrorCode
[src]
impl Debug for ErrorCode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ErrorCode
[src]
impl Clone for ErrorCode
fn clone(&self) -> ErrorCode
[src]
fn clone(&self) -> ErrorCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for ErrorCode
[src]
impl Copy for ErrorCode
impl PartialEq for ErrorCode
[src]
impl PartialEq for ErrorCode
fn eq(&self, other: &ErrorCode) -> bool
[src]
fn eq(&self, other: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl From<u32> for ErrorCode
[src]
impl From<u32> for ErrorCode
fn from(code: u32) -> ErrorCode
[src]
fn from(code: u32) -> ErrorCode
Converts the given u32
number to the appropriate ErrorCode
variant.
impl AsRef<str> for ErrorCode
[src]
impl AsRef<str> for ErrorCode
impl Into<u32> for ErrorCode
[src]
impl Into<u32> for ErrorCode