Enum hyper::header::common::connection::ConnectionOption [-]  [+] [src]

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

Values that can be in the Connection header.

Variants

KeepAlive

The keep-alive connection value.

Close

The close connection value.

ConnectionHeader

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 FromStr for ConnectionOption

fn from_str(s: &str) -> Option<ConnectionOption>

impl String for ConnectionOption

fn fmt(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Show for ConnectionOption

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for ConnectionOption

fn eq(&self, __arg_0: &ConnectionOption) -> bool

fn ne(&self, __arg_0: &ConnectionOption) -> bool

impl Clone for ConnectionOption

fn clone(&self) -> ConnectionOption

fn clone_from(&mut self, source: &Self)