pub struct WebsocketConnection(/* private fields */);Expand description
The upgraded connection passed as the last argument to the websocket
handler function. WebsocketConnection::into_inner can be used to
access the raw upgraded connection, for passing to any implementation
of the websockets protocol.
Implementations§
Source§impl WebsocketConnection
impl WebsocketConnection
Sourcepub fn into_inner(self) -> WebsocketConnectionRaw
pub fn into_inner(self) -> WebsocketConnectionRaw
Consumes self and returns the held raw connection.
Auto Trait Implementations§
impl !Freeze for WebsocketConnection
impl !RefUnwindSafe for WebsocketConnection
impl Send for WebsocketConnection
impl !Sync for WebsocketConnection
impl Unpin for WebsocketConnection
impl !UnwindSafe for WebsocketConnection
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