Struct MidHandshake
pub struct MidHandshake<Role>where
Role: HandshakeRole,{ /* private fields */ }Expand description
A WebSocket handshake.
Implementations§
§impl<Role> MidHandshake<Role>where
Role: HandshakeRole,
impl<Role> MidHandshake<Role>where
Role: HandshakeRole,
pub fn get_ref(
&self,
) -> &HandshakeMachine<<Role as HandshakeRole>::InternalStream>
pub fn get_ref( &self, ) -> &HandshakeMachine<<Role as HandshakeRole>::InternalStream>
Allow access to machine
pub fn get_mut(
&mut self,
) -> &mut HandshakeMachine<<Role as HandshakeRole>::InternalStream>
pub fn get_mut( &mut self, ) -> &mut HandshakeMachine<<Role as HandshakeRole>::InternalStream>
Allow mutable access to machine
pub fn handshake(
self,
) -> Result<<Role as HandshakeRole>::FinalResult, HandshakeError<Role>>
pub fn handshake( self, ) -> Result<<Role as HandshakeRole>::FinalResult, HandshakeError<Role>>
Restarts the handshake process.
Trait Implementations§
§impl<Role> Debug for MidHandshake<Role>
impl<Role> Debug for MidHandshake<Role>
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