pub struct WebSocketContext {
pub sec_websocket_protocol_list: Vec<WebSocketSubProtocol, 3>,
pub sec_websocket_key: WebSocketKey,
}
Expand description
Websocket details extracted from the http header
Fields§
§sec_websocket_protocol_list: Vec<WebSocketSubProtocol, 3>
The list of sub protocols is restricted to a maximum of 3
sec_websocket_key: WebSocketKey
The websocket key user to build the accept string to complete the opening handshake
Auto Trait Implementations§
impl Freeze for WebSocketContext
impl RefUnwindSafe for WebSocketContext
impl Send for WebSocketContext
impl Sync for WebSocketContext
impl Unpin for WebSocketContext
impl UnwindSafe for WebSocketContext
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