pub struct ClientHandshake<S> {
    verify_data: VerifyData,
    config: Option<WebSocketConfig>,
    _marker: PhantomData<S>,
}Expand description
Client handshake role.
Fields§
§verify_data: VerifyData§config: Option<WebSocketConfig>§_marker: PhantomData<S>Implementations§
Source§impl<S: Read + Write> ClientHandshake<S>
 
impl<S: Read + Write> ClientHandshake<S>
Sourcepub fn start(
    stream: S,
    request: Request,
    config: Option<WebSocketConfig>,
) -> Result<MidHandshake<Self>>
 
pub fn start( stream: S, request: Request, config: Option<WebSocketConfig>, ) -> Result<MidHandshake<Self>>
Initiate a client handshake.
Trait Implementations§
Source§impl<S: Debug> Debug for ClientHandshake<S>
 
impl<S: Debug> Debug for ClientHandshake<S>
impl<S: Read + Write> HandshakeRole for ClientHandshake<S>
Auto Trait Implementations§
impl<S> Freeze for ClientHandshake<S>
impl<S> RefUnwindSafe for ClientHandshake<S>where
    S: RefUnwindSafe,
impl<S> Send for ClientHandshake<S>where
    S: Send,
impl<S> Sync for ClientHandshake<S>where
    S: Sync,
impl<S> Unpin for ClientHandshake<S>where
    S: Unpin,
impl<S> UnwindSafe for ClientHandshake<S>where
    S: UnwindSafe,
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