pub trait Resolver: Send + Sync {
// Required methods
fn fetch_version<'a>(
&'a self,
base: &'a str,
) -> BoxFuture<'a, Result<String>>;
fn list_installed(&self) -> Vec<Installed>;
}Expand description
I/O surface for resolve_with. Implementations provide HTTP discovery
(/json/version) and the list of installed browsers.
Required Methods§
fn fetch_version<'a>(&'a self, base: &'a str) -> BoxFuture<'a, Result<String>>
fn list_installed(&self) -> Vec<Installed>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".