Struct websocket_base::header::WebSocketAccept
source · [−]pub struct WebSocketAccept(_);
Expand description
Represents a Sec-WebSocket-Accept header
Implementations
sourceimpl 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
sourceimpl Clone for WebSocketAccept
impl Clone for WebSocketAccept
sourcefn clone(&self) -> WebSocketAccept
fn clone(&self) -> WebSocketAccept
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WebSocketAccept
impl Debug for WebSocketAccept
sourceimpl FromStr for WebSocketAccept
impl FromStr for WebSocketAccept
type Err = WebSocketError
type Err = WebSocketError
The associated error which can be returned from parsing.
sourcefn 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 more
sourceimpl PartialEq<WebSocketAccept> for WebSocketAccept
impl PartialEq<WebSocketAccept> for WebSocketAccept
sourcefn eq(&self, other: &WebSocketAccept) -> bool
fn eq(&self, other: &WebSocketAccept) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WebSocketAccept) -> bool
fn ne(&self, other: &WebSocketAccept) -> bool
This method tests for !=
.
impl Copy for WebSocketAccept
impl StructuralPartialEq for WebSocketAccept
Auto Trait Implementations
impl RefUnwindSafe for WebSocketAccept
impl Send for WebSocketAccept
impl Sync for WebSocketAccept
impl Unpin for WebSocketAccept
impl UnwindSafe for WebSocketAccept
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more