handshake

Function handshake 

Source
pub async fn handshake<S, Ws>(
    socket: S,
    config: TlsConfig<'_>,
    with_socket: Ws,
) -> Result<<Ws as WithSocket>::Output, Error>
where S: Socket, Ws: WithSocket,