pub struct WebSocketAccept(/* private fields */);
Expand description
Represents a Sec-WebSocket-Accept header
Implementations§
Source§impl WebSocketAccept
impl WebSocketAccept
Sourcepub fn new(key: &WebSocketKey) -> WebSocketAccept
pub fn new(key: &WebSocketKey) -> WebSocketAccept
Create a new WebSocketAccept from the given WebSocketKey
Trait Implementations§
Source§impl Clone for WebSocketAccept
impl Clone for WebSocketAccept
Source§fn clone(&self) -> WebSocketAccept
fn clone(&self) -> WebSocketAccept
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 WebSocketAccept
impl Debug for WebSocketAccept
Source§impl FromStr for WebSocketAccept
impl FromStr for WebSocketAccept
Source§type Err = WebSocketError
type Err = WebSocketError
The associated error which can be returned from parsing.
Source§fn from_str(accept: &str) -> WebSocketResult<WebSocketAccept>
fn from_str(accept: &str) -> WebSocketResult<WebSocketAccept>
Parses a string
s
to return a value of this type. Read moreSource§impl PartialEq for WebSocketAccept
impl PartialEq for WebSocketAccept
impl Copy for WebSocketAccept
impl StructuralPartialEq for WebSocketAccept
Auto Trait Implementations§
impl Freeze for WebSocketAccept
impl RefUnwindSafe for WebSocketAccept
impl Send for WebSocketAccept
impl Sync for WebSocketAccept
impl Unpin for WebSocketAccept
impl UnwindSafe for WebSocketAccept
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