Expand description
§Browser-related functionality
This module contains everything needed to detect and specify different browser installations.
While most of this functionality is handled for you, you can use these to get insight on any specific tweaks you may need to apply in your own project.
let browser = get_best_browser(None);
if let Some(browser) = browser {
match browser.kind {
BrowserKind::Chromium => {
apply_chromium_specific_config();
}
_ => {}
}
}Modules§
Structs§
- Browser
- Browser
Windows Config - A configuration object for a browser that contains possible locations and such, on Windows.
Enums§
Functions§
- get_
all_ existing_ browsers - Get all browsers available on the system
- get_
best_ browser - Get the best browser based on the provided kind. If no kind is provided, the first found supported browser is returned.
- get_
browser_ path - Get the first valid path for a specific browser
- get_
supported_ browsers - Get all supported browsers