Struct tungstenite::handshake::client::ClientHandshake
source · pub struct ClientHandshake<S> { /* private fields */ }
Expand description
Client handshake role.
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.