pub struct WebSocketKey(pub [u8; 16]);
Expand description
Represents a Sec-WebSocket-Key header.
Tuple Fields§
§0: [u8; 16]
Implementations§
Source§impl WebSocketKey
impl WebSocketKey
Trait Implementations§
Source§impl Clone for WebSocketKey
impl Clone for WebSocketKey
Source§fn clone(&self) -> WebSocketKey
fn clone(&self) -> WebSocketKey
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 WebSocketKey
impl Debug for WebSocketKey
Source§impl Default for WebSocketKey
impl Default for WebSocketKey
Source§fn default() -> WebSocketKey
fn default() -> WebSocketKey
Returns the “default value” for a type. Read more
Source§impl FromStr for WebSocketKey
impl FromStr for WebSocketKey
Source§type Err = WebSocketError
type Err = WebSocketError
The associated error which can be returned from parsing.
Source§fn from_str(key: &str) -> WebSocketResult<WebSocketKey>
fn from_str(key: &str) -> WebSocketResult<WebSocketKey>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for WebSocketKey
impl PartialEq for WebSocketKey
impl Copy for WebSocketKey
impl StructuralPartialEq for WebSocketKey
Auto Trait Implementations§
impl Freeze for WebSocketKey
impl RefUnwindSafe for WebSocketKey
impl Send for WebSocketKey
impl Sync for WebSocketKey
impl Unpin for WebSocketKey
impl UnwindSafe for WebSocketKey
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