trait FromStartRequest<T> {
// Required method
fn from_start_request(
bp: &BrowserProfileFullData,
request: &StartRequest,
navigator: &Navigator,
screen: &Screen,
token: &str,
) -> Result<T, Error>;
}Expand description
Trait for converting browser profile data and start request into configuration types.
This trait is implemented by various configuration components to construct themselves from the browser profile data and start request information.
Required Methods§
sourcefn from_start_request(
bp: &BrowserProfileFullData,
request: &StartRequest,
navigator: &Navigator,
screen: &Screen,
token: &str,
) -> Result<T, Error>
fn from_start_request( bp: &BrowserProfileFullData, request: &StartRequest, navigator: &Navigator, screen: &Screen, token: &str, ) -> Result<T, Error>
Creates a new instance from the provided browser profile data and start request.
§Arguments
bp- The full browser profile datarequest- The start request containing runtime configurationnavigator- The navigator configurationscreen- The screen configurationtoken- Authentication token
§Returns
Result<T, Error>- The constructed configuration instance or an error
Object Safety§
Implementations on Foreign Types§
source§impl FromStartRequest<Option<HashMap<String, Password>>> for Option<HashMap<String, Password>>
impl FromStartRequest<Option<HashMap<String, Password>>> for Option<HashMap<String, Password>>
fn from_start_request( bp: &BrowserProfileFullData, _request: &StartRequest, _navigator: &Navigator, _screen: &Screen, _token: &str, ) -> Result<Self, Error>
source§impl FromStartRequest<Option<WebGPU>> for Option<WebGPU>
impl FromStartRequest<Option<WebGPU>> for Option<WebGPU>
Creates optional WebGPU configuration from browser profile and start request data
Returns None if WebGPU is not in manual mode or if required parameters are missing.
fn from_start_request( bp: &BrowserProfileFullData, _request: &StartRequest, _navigator: &Navigator, _screen: &Screen, _token: &str, ) -> Result<Self, Error>
Implementors§
impl FromStartRequest<Additional> for Additional
Implementation of the FromStartRequest trait for Additional configuration
This implementation creates an Additional configuration from a browser profile, start request, and other parameters. It handles the logic for setting up WebRTC, canvas/WebGL noise, platform-specific settings, and other configuration options.
impl FromStartRequest<DolphinSpecific> for DolphinSpecific
Implementation to create DolphinSpecific config from a start request
impl FromStartRequest<Fonts> for Fonts
impl FromStartRequest<Geolocation> for Geolocation
impl FromStartRequest<Hints> for Hints
Implementation of FromStartRequest trait for Hints Allows creating Hints from a start request and related data
impl FromStartRequest<MediaDevices> for MediaDevices
Implementation of conversion from start request for MediaDevices.
impl FromStartRequest<PortsProtection> for PortsProtection
Implementation of conversion from start request for port protection settings
impl FromStartRequest<Screen> for Screen
Implementation of screen configuration generation from start request data
impl FromStartRequest<Synchronize> for Synchronize
impl FromStartRequest<WebGL> for WebGL
Creates WebGL configuration from browser profile and start request data
impl FromStartRequest<SpeechVoices> for SpeechVoices
Creates speech synthesis configuration from browser profile and start request data
Currently always sets enabled to false while preserving the voice configuration.
impl FromStartRequest<Voices> for Voices
Creates voice configuration from browser profile and start request data
Filters available voices based on:
- Platform (Windows, macOS, Linux)
- Navigator locale
- Special handling for en-US and en locales