Struct tungstenite::handshake::MidHandshake
source · pub struct MidHandshake<Role: HandshakeRole> { /* private fields */ }
Expand description
A WebSocket handshake.
Implementations§
source§impl<Role: HandshakeRole> MidHandshake<Role>
impl<Role: HandshakeRole> MidHandshake<Role>
sourcepub fn get_ref(&self) -> &HandshakeMachine<Role::InternalStream>
pub fn get_ref(&self) -> &HandshakeMachine<Role::InternalStream>
Allow access to machine
sourcepub fn get_mut(&mut self) -> &mut HandshakeMachine<Role::InternalStream>
pub fn get_mut(&mut self) -> &mut HandshakeMachine<Role::InternalStream>
Allow mutable access to machine
sourcepub fn handshake(self) -> Result<Role::FinalResult, HandshakeError<Role>>
pub fn handshake(self) -> Result<Role::FinalResult, HandshakeError<Role>>
Restarts the handshake process.