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.
Trait Implementations§
source§impl<Role: Debug + HandshakeRole> Debug for MidHandshake<Role>where
Role::InternalStream: Debug,
impl<Role: Debug + HandshakeRole> Debug for MidHandshake<Role>where
Role::InternalStream: Debug,
Auto Trait Implementations§
impl<Role> Freeze for MidHandshake<Role>
impl<Role> RefUnwindSafe for MidHandshake<Role>
impl<Role> Send for MidHandshake<Role>
impl<Role> Sync for MidHandshake<Role>
impl<Role> Unpin for MidHandshake<Role>
impl<Role> UnwindSafe for MidHandshake<Role>
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