Enum hyper::header::ConnectionOption [] [src]

pub enum ConnectionOption {
    KeepAlive,
    Close,
    ConnectionHeader(Ascii<String>),
}

Values that can be in the Connection header.

Variants

The keep-alive connection value.

The close connection value.

Values in the Connection header that are supposed to be names of other Headers.

When a header field aside from Connection is used to supply control information for or about the current connection, the sender MUST list the corresponding field-name within the Connection header field.

Trait Implementations

impl Clone for ConnectionOption
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ConnectionOption
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for ConnectionOption
[src]

[src]

Formats the value using the given formatter.

impl FromStr for ConnectionOption
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for ConnectionOption
[src]

[src]

Formats the value using the given formatter. Read more