Function webbrowser::open_browser

source ·
pub fn open_browser(browser: Browser, url: &str) -> Result<()>
Expand description

Opens the specified URL on the specific browser (if available) requested. Return semantics are the same as for open.

Examples

use webbrowser::{open_browser, Browser};

if open_browser(Browser::Firefox, "http://github.com").is_ok() {
    // ...
}