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 SecWebsocketAccept
fn clone(&self) -> SecWebsocketAccept
[src]
fn clone(&self) -> SecWebsocketAccept
Returns 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 SecWebsocketAccept
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for SecWebsocketAccept
[src]
impl PartialEq for SecWebsocketAccept
fn eq(&self, other: &SecWebsocketAccept) -> bool
[src]
fn eq(&self, other: &SecWebsocketAccept) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for SecWebsocketAccept
[src]
impl Eq for SecWebsocketAccept
impl Hash for SecWebsocketAccept
[src]
impl Hash for SecWebsocketAccept
fn 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 SecWebsocketAccept
fn from(key: SecWebsocketKey) -> SecWebsocketAccept
[src]
fn from(key: SecWebsocketKey) -> SecWebsocketAccept
Performs the conversion.
Auto Trait Implementations
impl Send for SecWebsocketAccept
impl Send for SecWebsocketAccept
impl Sync for SecWebsocketAccept
impl Sync for SecWebsocketAccept