Enum websocket::header::WebSocketVersion
[−]
[src]
pub enum WebSocketVersion {
WebSocket13,
Unknown(String),
}Represents a Sec-WebSocket-Version header
Variants
WebSocket13The version of WebSocket defined in RFC6455
Unknown(String)An unknown version of WebSocket
Trait Implementations
impl PartialEq for WebSocketVersion[src]
fn eq(&self, __arg_0: &WebSocketVersion) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &WebSocketVersion) -> bool[src]
This method tests for !=.
impl Clone for WebSocketVersion[src]
fn clone(&self) -> WebSocketVersion[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for WebSocketVersion[src]
fn fmt(&self, f: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Header for WebSocketVersion[src]
fn header_name() -> &'static str[src]
Returns the name of the header field this belongs to. Read more
fn parse_header(raw: &[Vec<u8>]) -> Result<WebSocketVersion>[src]
Parse a header from a raw stream of bytes. Read more
impl HeaderFormat for WebSocketVersion[src]
fn fmt_header(&self, fmt: &mut Formatter) -> Result[src]
Format a header to be output into a TcpStream. Read more