pub fn from_url_lossy(url: &str) -> Result<Multiaddr, FromUrlErr>
Expand description

Attempts to parse an URL into a multiaddress. Ignores possible loss of information.

This function is similar to from_url, except that we don’t return an error if some information in the URL cannot be retain in the generated multiaddres.

This function is only present if the url feature is enabled, and it is enabled by default.


let addr = "ws://user:pass@";