Function tungstenite::client::url_mode

source ·
pub fn url_mode(url: &Url) -> Result<Mode>
Expand description

Get the mode of the given URL.

This function may be used to ease the creation of custom TLS streams in non-blocking algorithmss or for use with TLS libraries other than native_tls.