Function uri_mode
pub fn uri_mode(uri: &Uri) -> Result<Mode, Error>Available on crate features
ws and handshake only.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 algorithms or for use with TLS libraries other than native_tls or rustls.