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