pub struct ClientHandshake {
pub path: String,
pub host: String,
pub key: String,
pub protocols: Vec<String>,
pub extensions: Vec<String>,
}Expand description
Geparste Client-Request.
Fields§
§path: StringRequest-Path (z.B. /chat).
host: StringHost-Header.
key: StringSec-WebSocket-Key (Base64).
protocols: Vec<String>Optional Sec-WebSocket-Protocol.
extensions: Vec<String>Optional Sec-WebSocket-Extensions.
Trait Implementations§
Source§impl Clone for ClientHandshake
impl Clone for ClientHandshake
Source§fn clone(&self) -> ClientHandshake
fn clone(&self) -> ClientHandshake
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ClientHandshake
impl Debug for ClientHandshake
Source§impl Default for ClientHandshake
impl Default for ClientHandshake
Source§fn default() -> ClientHandshake
fn default() -> ClientHandshake
Returns the “default value” for a type. Read more
Source§impl PartialEq for ClientHandshake
impl PartialEq for ClientHandshake
Source§fn eq(&self, other: &ClientHandshake) -> bool
fn eq(&self, other: &ClientHandshake) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ClientHandshake
impl StructuralPartialEq for ClientHandshake
Auto Trait Implementations§
impl Freeze for ClientHandshake
impl RefUnwindSafe for ClientHandshake
impl Send for ClientHandshake
impl Sync for ClientHandshake
impl Unpin for ClientHandshake
impl UnsafeUnpin for ClientHandshake
impl UnwindSafe for ClientHandshake
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