pub fn open_browser(browser: Browser, url: &str) -> Result<()>
Opens the specified URL on the specific browser (if available) requested. Return semantics are the same as for open.
use webbrowser::{open_browser, Browser}; if open_browser(Browser::Firefox, "http://github.com").is_ok() { // ... }