Struct headers::common::sec_websocket_accept::SecWebsocketAccept
source · pub struct SecWebsocketAccept(HeaderValue);
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);
Tuple Fields§
§0: HeaderValue
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 for SecWebsocketAccept
impl PartialEq for SecWebsocketAccept
impl Eq for SecWebsocketAccept
impl StructuralPartialEq for SecWebsocketAccept
Auto Trait Implementations§
impl !Freeze for SecWebsocketAccept
impl RefUnwindSafe for SecWebsocketAccept
impl Send for SecWebsocketAccept
impl Sync for SecWebsocketAccept
impl Unpin for SecWebsocketAccept
impl UnwindSafe for SecWebsocketAccept
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)