Struct ratchet_rs::UpgradedClient
source · [−]pub struct UpgradedClient<S, E> {
pub websocket: WebSocket<S, E>,
pub subprotocol: Option<String>,
}
Expand description
A structure representing an upgraded WebSocket session and an optional subprotocol that was negotiated during the upgrade.
Fields
websocket: WebSocket<S, E>
The WebSocket connection.
subprotocol: Option<String>
An optional subprotocol that was negotiated during the upgrade.
Implementations
sourceimpl<S, E> UpgradedClient<S, E>
impl<S, E> UpgradedClient<S, E>
sourcepub fn into_websocket(self) -> WebSocket<S, E>
pub fn into_websocket(self) -> WebSocket<S, E>
Consume self and take the websocket
Trait Implementations
Auto Trait Implementations
impl<S, E> RefUnwindSafe for UpgradedClient<S, E> where
E: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, E> Send for UpgradedClient<S, E> where
E: Send,
S: Send,
impl<S, E> Sync for UpgradedClient<S, E> where
E: Sync,
S: Sync,
impl<S, E> Unpin for UpgradedClient<S, E> where
E: Unpin,
S: Unpin,
impl<S, E> UnwindSafe for UpgradedClient<S, E> where
E: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more