Trait mockable::System

source ·
pub trait System: Send + Sync {
    // Required method
    fn open_url(&self, url: &str) -> Result<()>;
}
Expand description

A trait for interacting with the system.

Example.

Required Methods§

source

fn open_url(&self, url: &str) -> Result<()>

Open a URL in the default browser.

This is supported on feature=browser only.

Implementors§