Enum iron::headers::ConnectionOption [] [src]

pub enum ConnectionOption {
    KeepAlive,
    Close,
    ConnectionHeader(UniCase<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 Debug for ConnectionOption

Formats the value using the given formatter.

impl PartialEq<ConnectionOption> for ConnectionOption

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

This method tests for !=.

impl Clone for ConnectionOption

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl FromStr for ConnectionOption

impl Display for ConnectionOption

Formats the value using the given formatter.