Enum edge::header::ConnectionOption [] [src]

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

type Err = ()

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

impl Display for ConnectionOption

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

Derived Implementations

impl Debug for ConnectionOption

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

impl PartialEq<ConnectionOption> for ConnectionOption

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

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

impl Clone for ConnectionOption

fn clone(&self) -> ConnectionOption

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