Enum websocket::header::WebSocketVersion [] [src]

pub enum WebSocketVersion {
    WebSocket13,
    Unknown(String),
}

Represents a Sec-WebSocket-Version header

Variants

The version of WebSocket defined in RFC6455

An unknown version of WebSocket

Trait Implementations

impl PartialEq for WebSocketVersion
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Clone for WebSocketVersion
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for WebSocketVersion
[src]

[src]

Formats the value using the given formatter. Read more

impl Header for WebSocketVersion
[src]

[src]

Returns the name of the header field this belongs to. Read more

[src]

Parse a header from a raw stream of bytes. Read more

impl HeaderFormat for WebSocketVersion
[src]

[src]

Format a header to be output into a TcpStream. Read more

impl Display for WebSocketVersion
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations