Struct headers_ext::SecWebsocketAccept [−][src]
pub struct SecWebsocketAccept(_);
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
impl Clone for SecWebsocketAccept[src]
impl Clone for SecWebsocketAcceptfn clone(&self) -> SecWebsocketAccept[src]
fn clone(&self) -> SecWebsocketAcceptReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for SecWebsocketAccept[src]
impl Debug for SecWebsocketAcceptfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for SecWebsocketAccept[src]
impl PartialEq for SecWebsocketAcceptfn eq(&self, other: &SecWebsocketAccept) -> bool[src]
fn eq(&self, other: &SecWebsocketAccept) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SecWebsocketAccept) -> bool[src]
fn ne(&self, other: &SecWebsocketAccept) -> boolThis method tests for !=.
impl Eq for SecWebsocketAccept[src]
impl Eq for SecWebsocketAcceptimpl Hash for SecWebsocketAccept[src]
impl Hash for SecWebsocketAcceptfn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl From<SecWebsocketKey> for SecWebsocketAccept[src]
impl From<SecWebsocketKey> for SecWebsocketAcceptfn from(key: SecWebsocketKey) -> SecWebsocketAccept[src]
fn from(key: SecWebsocketKey) -> SecWebsocketAcceptPerforms the conversion.
Auto Trait Implementations
impl Send for SecWebsocketAccept
impl Send for SecWebsocketAcceptimpl Sync for SecWebsocketAccept
impl Sync for SecWebsocketAccept