Struct websocket::header::WebSocketProtocol [] [src]

pub struct WebSocketProtocol(pub Vec<String>);

Represents a Sec-WebSocket-Protocol header

Trait Implementations

impl Deref for WebSocketProtocol

type Target = Vec<String>

fn deref<'a>(&'a self) -> &'a Vec<String>

impl Header for WebSocketProtocol

fn header_name() -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Result<WebSocketProtocol>

impl HeaderFormat for WebSocketProtocol

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

Derived Implementations

impl Debug for WebSocketProtocol

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

impl Clone for WebSocketProtocol

fn clone(&self) -> WebSocketProtocol

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

impl PartialEq for WebSocketProtocol

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

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