pub struct SecWebsocketAccept(_);
Expand description
The Sec-Websocket-Accept
header.
This header is used in the Websocket handshake, sent back by the
server indicating a successful handshake. It is a signature
of the Sec-Websocket-Key
header.
Example
use headers::{SecWebsocketAccept, SecWebsocketKey};
let sec_key: SecWebsocketKey = /* from request headers */
let sec_accept = SecWebsocketAccept::from(sec_key);
Trait Implementations§
source§impl Clone for SecWebsocketAccept
impl Clone for SecWebsocketAccept
source§fn clone(&self) -> SecWebsocketAccept
fn clone(&self) -> SecWebsocketAccept
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SecWebsocketAccept
impl Debug for SecWebsocketAccept
source§impl From<SecWebsocketKey> for SecWebsocketAccept
impl From<SecWebsocketKey> for SecWebsocketAccept
source§fn from(key: SecWebsocketKey) -> SecWebsocketAccept
fn from(key: SecWebsocketKey) -> SecWebsocketAccept
Converts to this type from the input type.
source§impl Hash for SecWebsocketAccept
impl Hash for SecWebsocketAccept
source§impl Header for SecWebsocketAccept
impl Header for SecWebsocketAccept
source§impl PartialEq<SecWebsocketAccept> for SecWebsocketAccept
impl PartialEq<SecWebsocketAccept> for SecWebsocketAccept
source§fn eq(&self, other: &SecWebsocketAccept) -> bool
fn eq(&self, other: &SecWebsocketAccept) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.