Enum hyper::header::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

type Err = ()

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

impl Display for Protocol

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

impl FromStr for Protocol

type Err = ()

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

impl Display for Protocol

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

Derived Implementations

impl Debug 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)

impl Debug 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)