pub struct ServerHandshake {
pub status: u16,
pub accept: String,
pub protocol: Option<String>,
pub extensions: Vec<String>,
}Expand description
Server-Response-Builder.
Fields§
§status: u16Status-Code (immer 101 fuer Success).
accept: StringSec-WebSocket-Accept-Hash.
protocol: Option<String>Optional Sec-WebSocket-Protocol (eines der Client-angebotenen).
extensions: Vec<String>Optional Sec-WebSocket-Extensions.
Trait Implementations§
Source§impl Clone for ServerHandshake
impl Clone for ServerHandshake
Source§fn clone(&self) -> ServerHandshake
fn clone(&self) -> ServerHandshake
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 ServerHandshake
impl Debug for ServerHandshake
Source§impl Default for ServerHandshake
impl Default for ServerHandshake
Source§fn default() -> ServerHandshake
fn default() -> ServerHandshake
Returns the “default value” for a type. Read more
Source§impl PartialEq for ServerHandshake
impl PartialEq for ServerHandshake
Source§fn eq(&self, other: &ServerHandshake) -> bool
fn eq(&self, other: &ServerHandshake) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ServerHandshake
impl StructuralPartialEq for ServerHandshake
Auto Trait Implementations§
impl Freeze for ServerHandshake
impl RefUnwindSafe for ServerHandshake
impl Send for ServerHandshake
impl Sync for ServerHandshake
impl Unpin for ServerHandshake
impl UnsafeUnpin for ServerHandshake
impl UnwindSafe for ServerHandshake
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