Enum hyper::header::common::upgrade::Protocol [-]  [+] [src]

pub enum Protocol {
    WebSocket,
    ProtocolExt(String),
}

Protocol values that can appear in the Upgrade header.

Variants

WebSocket

The websocket protocol.

ProtocolExt

Some other less common protocol.

Trait Implementations

impl FromStr for Protocol

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

impl String for Protocol

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

Derived Implementations

impl Show for Protocol

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

impl PartialEq for Protocol

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

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

impl Clone for Protocol

fn clone(&self) -> Protocol

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