Struct tk_http::websocket::Key [] [src]

pub struct Key(_);

The Sec-WebSocket-Key header value

You can add it using enc.format_header("Sec-WebSocket-Key", key). Or use any other thing that supports Display.

Methods

impl Key
[src]

[src]

Create a new (random) key, eligible to use for client connection

Trait Implementations

impl Display for Key
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Key
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Key

impl Sync for Key