pub struct CdpConfig {
pub chrome_path: Option<String>,
pub debug_port: u16,
pub headless: bool,
pub user_data_dir: Option<String>,
pub extra_args: Vec<String>,
pub connect_timeout_secs: u64,
pub disable_gpu: bool,
pub no_sandbox: bool,
}Expand description
Configuration specific to the CDP browser driver.
Extends BrowserConfig with CDP-specific knobs — fine-tuning the
fighter’s gloves before the bout.
Fields§
§chrome_path: Option<String>Path to the Chrome/Chromium binary. None means auto-detect.
debug_port: u16Remote debugging port. Default: 9222.
headless: boolRun headless (no visible window). Default: true.
user_data_dir: Option<String>Custom user-data directory. None uses a temp directory.
extra_args: Vec<String>Additional Chrome launch arguments.
connect_timeout_secs: u64Connection timeout in seconds. Default: 10.
disable_gpu: boolWhether to disable GPU acceleration. Default: true.
no_sandbox: boolWhether to run with --no-sandbox. Default: true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CdpConfig
impl<'de> Deserialize<'de> for CdpConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&BrowserConfig> for CdpConfig
impl From<&BrowserConfig> for CdpConfig
Source§fn from(config: &BrowserConfig) -> Self
fn from(config: &BrowserConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CdpConfig
impl RefUnwindSafe for CdpConfig
impl Send for CdpConfig
impl Sync for CdpConfig
impl Unpin for CdpConfig
impl UnsafeUnpin for CdpConfig
impl UnwindSafe for CdpConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more