Struct tungstenite::handshake::client::ClientHandshake
source · 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.