pub fn connect(url_str: &str) -> Result<Box<dyn Transport>>Expand description
Connect to the peer identified by url_str.
The URL scheme selects the transport kind via the link-time
registry. The built-in inproc and mock schemes are always
available; additional schemes require their transport crate to be
linked into the final binary.