Struct tungstenite::handshake::MidHandshake
[−]
[src]
pub struct MidHandshake<Stream, Role> { /* fields omitted */ }
A WebSocket handshake.
Methods
impl<Stream, Role> MidHandshake<Stream, Role>
[src]
fn get_ref(&self) -> &Stream
Returns a shared reference to the inner stream.
fn get_mut(&mut self) -> &mut Stream
Returns a mutable reference to the inner stream.
impl<Stream: Read + Write, Role: HandshakeRole> MidHandshake<Stream, Role>
[src]
fn handshake(self) -> Result<WebSocket<Stream>, HandshakeError<Stream, Role>>
Restarts the handshake process.