pub fn open_url(url: &str) -> Result<()>Expand description
Opens a URL with the user’s default browser or registered handler.
Surrounding whitespace is trimmed before the URL is passed to the Windows shell. URL validation is otherwise delegated to the Windows shell.
§Errors
Returns Error::InvalidInput if url is empty, whitespace only, or contains NUL bytes.
Returns Error::WindowsApi if ShellExecuteW reports failure.
§Examples
win_desktop_utils::open_url("https://www.rust-lang.org")?;