Struct tungstenite::handshake::MidHandshake [−][src]
pub struct MidHandshake<Role: HandshakeRole> { /* fields omitted */ }
A WebSocket handshake.
Implementations
impl<Role: HandshakeRole> MidHandshake<Role>
[src]
impl<Role: HandshakeRole> MidHandshake<Role>
[src]pub fn get_ref(&self) -> &HandshakeMachine<Role::InternalStream>
[src]
Allow access to machine
pub fn get_mut(&mut self) -> &mut HandshakeMachine<Role::InternalStream>
[src]
Allow mutable access to machine
pub fn handshake(self) -> Result<Role::FinalResult, HandshakeError<Role>>
[src]
Restarts the handshake process.
Trait Implementations
impl<Role: Debug + HandshakeRole> Debug for MidHandshake<Role> where
Role::InternalStream: Debug,
[src]
impl<Role: Debug + HandshakeRole> Debug for MidHandshake<Role> where
Role::InternalStream: Debug,
[src]Auto Trait Implementations
impl<Role> RefUnwindSafe for MidHandshake<Role> where
Role: RefUnwindSafe,
<Role as HandshakeRole>::InternalStream: RefUnwindSafe,
Role: RefUnwindSafe,
<Role as HandshakeRole>::InternalStream: RefUnwindSafe,
impl<Role> Send for MidHandshake<Role> where
Role: Send,
<Role as HandshakeRole>::InternalStream: Send,
Role: Send,
<Role as HandshakeRole>::InternalStream: Send,
impl<Role> Sync for MidHandshake<Role> where
Role: Sync,
<Role as HandshakeRole>::InternalStream: Sync,
Role: Sync,
<Role as HandshakeRole>::InternalStream: Sync,
impl<Role> Unpin for MidHandshake<Role> where
Role: Unpin,
<Role as HandshakeRole>::InternalStream: Unpin,
Role: Unpin,
<Role as HandshakeRole>::InternalStream: Unpin,
impl<Role> UnwindSafe for MidHandshake<Role> where
Role: UnwindSafe,
<Role as HandshakeRole>::InternalStream: UnwindSafe,
Role: UnwindSafe,
<Role as HandshakeRole>::InternalStream: UnwindSafe,