pub trait EmulationFactory {
// Required method
fn emulation(self) -> Emulation;
}Expand description
Factory trait for creating emulation configurations.
This trait allows different types (enums, structs, etc.) to provide their own emulation configurations. It’s particularly useful for:
- Predefined browser profiles
- Dynamic configuration based on runtime conditions
- User-defined custom emulation strategies
Required Methods§
Implementors§
impl EmulationFactory for BrowserProfile
impl EmulationFactory for Http1Options
Available on crate feature
http1 only.impl EmulationFactory for Http2Options
Available on crate feature
http2 only.