pub struct BrowserConfig { /* private fields */ }Expand description
Configuration for the session-scoped headless Chrome/Chromium controller.
Implementations§
Source§impl BrowserConfig
impl BrowserConfig
Sourcepub fn with_allow_local(self, allow_local: bool) -> Self
pub fn with_allow_local(self, allow_local: bool) -> Self
Controls whether explicit loopback targets (localhost, 127.0.0.1, ::1) may be opened.
Sourcepub fn with_live_network_policy(self, policy: LivePolicyHandle) -> Self
pub fn with_live_network_policy(self, policy: LivePolicyHandle) -> Self
Attaches the live unified LivePolicyHandle shared with
session permissions, workspace allowed_domains, and network policy.
Sourcepub fn with_chrome_executable(self, path: impl Into<PathBuf>) -> Self
pub fn with_chrome_executable(self, path: impl Into<PathBuf>) -> Self
Sets an explicit Chrome/Chromium executable path instead of auto-discovery.
Sourcepub fn with_default_timeout(self, timeout: Duration) -> Self
pub fn with_default_timeout(self, timeout: Duration) -> Self
Overrides the default CDP action timeout.
Sourcepub fn with_viewport(self, width: u32, height: u32) -> Self
pub fn with_viewport(self, width: u32, height: u32) -> Self
Overrides the initial viewport dimensions.
Sourcepub fn with_process_launcher(
self,
launcher: Arc<dyn BrowserProcessLauncher>,
) -> Self
pub fn with_process_launcher( self, launcher: Arc<dyn BrowserProcessLauncher>, ) -> Self
Routes headless browser launches through an explicit BrowserProcessLauncher.
Sourcepub fn with_process_runner(self, runner: Arc<dyn ProcessRunner>) -> Self
pub fn with_process_runner(self, runner: Arc<dyn ProcessRunner>) -> Self
Routes headless browser launches through Merry’s configured ProcessRunner.
Trait Implementations§
Source§impl Clone for BrowserConfig
impl Clone for BrowserConfig
Source§impl Debug for BrowserConfig
impl Debug for BrowserConfig
Auto Trait Implementations§
impl !RefUnwindSafe for BrowserConfig
impl !UnwindSafe for BrowserConfig
impl Forget for BrowserConfig
impl Freeze for BrowserConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<dyn BrowserProcessLauncher> is !null: Freeze,
PhantomData<ArcInner<dyn BrowserProcessLauncher>>: Freeze,
*const ArcInner<RwLock<Arc<LivePolicyBaseline>>> is !null: Freeze,
PhantomData<ArcInner<RwLock<Arc<LivePolicyBaseline>>>>: Freeze,
*const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: Freeze,
*const ArcInner<ChildWorkspacePolicyOverride> is !null: Freeze,
PhantomData<ArcInner<ChildWorkspacePolicyOverride>>: Freeze,
impl Move for BrowserConfig
impl Send for BrowserConfigwhere
RawVecInner: Send,
Arc<dyn BrowserProcessLauncher>: Send,
Arc<RwLock<Arc<LivePolicyBaseline>>>: Send,
Arc<RwLock<ProcessSessionPermissionState>>: Send,
Arc<ChildWorkspacePolicyOverride>: Send,
impl Sync for BrowserConfigwhere
RawVecInner: Sync,
Arc<dyn BrowserProcessLauncher>: Sync,
Arc<RwLock<Arc<LivePolicyBaseline>>>: Sync,
Arc<RwLock<ProcessSessionPermissionState>>: Sync,
Arc<ChildWorkspacePolicyOverride>: Sync,
impl Unpin for BrowserConfig
impl UnsafeUnpin for BrowserConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<dyn BrowserProcessLauncher> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn BrowserProcessLauncher>>: UnsafeUnpin,
*const ArcInner<RwLock<Arc<LivePolicyBaseline>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<Arc<LivePolicyBaseline>>>>: UnsafeUnpin,
*const ArcInner<RwLock<ProcessSessionPermissionState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ProcessSessionPermissionState>>>: UnsafeUnpin,
*const ArcInner<ChildWorkspacePolicyOverride> is !null: UnsafeUnpin,
PhantomData<ArcInner<ChildWorkspacePolicyOverride>>: UnsafeUnpin,
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