pub struct WebSocketHandshake {
pub status: Option<i64>,
pub status_text: Option<String>,
pub response_headers: HashMap<String, String>,
pub request_headers: HashMap<String, String>,
}Expand description
The WebSocket handshake result.
Fields§
§status: Option<i64>HTTP status code of the handshake response (e.g. 101).
status_text: Option<String>Status text of the handshake response.
response_headers: HashMap<String, String>Response headers, as reported by webSocketHandshakeResponse.
request_headers: HashMap<String, String>Request headers, as reported by webSocketWillSendHandshakeRequest.
Trait Implementations§
Source§impl Clone for WebSocketHandshake
impl Clone for WebSocketHandshake
Source§fn clone(&self) -> WebSocketHandshake
fn clone(&self) -> WebSocketHandshake
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 WebSocketHandshake
impl Debug for WebSocketHandshake
Source§impl Default for WebSocketHandshake
impl Default for WebSocketHandshake
Source§fn default() -> WebSocketHandshake
fn default() -> WebSocketHandshake
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WebSocketHandshake
impl RefUnwindSafe for WebSocketHandshake
impl Send for WebSocketHandshake
impl Sync for WebSocketHandshake
impl Unpin for WebSocketHandshake
impl UnsafeUnpin for WebSocketHandshake
impl UnwindSafe for WebSocketHandshake
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