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

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.

The endpoint detected an unspecific protocol error. This error is for use when a more specific error code is not available.

The endpoint encountered an unexpected internal error.

The endpoint detected that its peer violated the flow-control protocol.

The endpoint sent a SETTINGS frame but did not receive a response in a timely manner. See Section 6.5.3 ("Settings Synchronization").

The endpoint received a frame after a stream was half-closed.

The endpoint received a frame with an invalid size.

The endpoint refused the stream prior to performing any application processing (see Section 8.1.4 for details).

Used by the endpoint to indicate that the stream is no longer needed.

The endpoint is unable to maintain the header compression context for the connection.

The connection established in response to a CONNECT request (Section 8.3) was reset or abnormally closed.

The endpoint detected that its peer is exhibiting a behavior that might be generating excessive load.

The underlying transport has properties that do not meet minimum security requirements (see Section 9.2).

The endpoint requires that HTTP/1.1 be used instead of HTTP/2.

Trait Implementations

impl Debug for ErrorCode
[src]

Formats the value using the given formatter.

impl Clone for ErrorCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ErrorCode
[src]

impl PartialEq for ErrorCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<u32> for ErrorCode
[src]

Converts the given u32 number to the appropriate ErrorCode variant.

impl AsRef<str> for ErrorCode
[src]

Performs the conversion.

impl Into<u32> for ErrorCode
[src]

Performs the conversion.