darkwing::server::services::browser_profile_services::config

Trait FromStartRequest

source
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§

source

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 data
  • request - The start request containing runtime configuration
  • navigator - The navigator configuration
  • screen - The screen configuration
  • token - Authentication token
§Returns
  • Result<T, Error> - The constructed configuration instance or an error

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromStartRequest<Option<HashMap<String, Password>>> for Option<HashMap<String, Password>>

source§

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>

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.

source§

fn from_start_request( bp: &BrowserProfileFullData, _request: &StartRequest, _navigator: &Navigator, _screen: &Screen, _token: &str, ) -> Result<Self, Error>

Implementors§

source§

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.

source§

impl FromStartRequest<DolphinSpecific> for DolphinSpecific

Implementation to create DolphinSpecific config from a start request

source§

impl FromStartRequest<Fonts> for Fonts

source§

impl FromStartRequest<Geolocation> for Geolocation

source§

impl FromStartRequest<Hints> for Hints

Implementation of FromStartRequest trait for Hints Allows creating Hints from a start request and related data

source§

impl FromStartRequest<MediaDevices> for MediaDevices

Implementation of conversion from start request for MediaDevices.

source§

impl FromStartRequest<Navigator> for Navigator

source§

impl FromStartRequest<PortsProtection> for PortsProtection

Implementation of conversion from start request for port protection settings

source§

impl FromStartRequest<Screen> for Screen

Implementation of screen configuration generation from start request data

source§

impl FromStartRequest<Synchronize> for Synchronize

source§

impl FromStartRequest<WebGL> for WebGL

Creates WebGL configuration from browser profile and start request data

source§

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.

source§

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