pub struct BrowserProcessSpawner { /* private fields */ }Expand description
Spawns private headless browser child processes according to the owning process session’s live sandbox mode, protected private paths, and environment isolation policy.
Implementations§
Source§impl BrowserProcessSpawner
impl BrowserProcessSpawner
Sourcepub fn current_mode(&self) -> ProcessBackendMode
pub fn current_mode(&self) -> ProcessBackendMode
Returns the currently active sandbox mode observed by this spawner.
Sourcepub async fn spawn(
&self,
executable: &Path,
args: &[String],
profile_dir: Option<&Path>,
) -> Result<Child, ProcessRunnerError>
pub async fn spawn( &self, executable: &Path, args: &[String], profile_dir: Option<&Path>, ) -> Result<Child, ProcessRunnerError>
Spawns a private headless browser child process.
In ProcessBackendMode::Isolated, confines the process with
BrowserSandboxProfile (zero workspace, zero $HOME, zero providers/)
or fails closed when OS sandboxing is unavailable. In
ProcessBackendMode::Host, spawns directly on the host without a fake
sandbox while still stripping isolated environment variables.
Trait Implementations§
Source§impl Clone for BrowserProcessSpawner
impl Clone for BrowserProcessSpawner
Auto Trait Implementations§
impl Forget for BrowserProcessSpawner
impl Freeze for BrowserProcessSpawnerwhere
*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,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<RwLock<ProcessEnvIsolation>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ProcessEnvIsolation>>>: Freeze,
impl Move for BrowserProcessSpawner
impl RefUnwindSafe for BrowserProcessSpawnerwhere
Atomic<usize>: RefUnwindSafe,
RwLock<Arc<LivePolicyBaseline>>: RefUnwindSafe,
RwLock<ProcessSessionPermissionState>: RefUnwindSafe,
RwLock<ProcessEnvIsolation>: RefUnwindSafe,
impl Send for BrowserProcessSpawner
impl Sync for BrowserProcessSpawner
impl Unpin for BrowserProcessSpawner
impl UnsafeUnpin for BrowserProcessSpawnerwhere
*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,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<RwLock<ProcessEnvIsolation>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ProcessEnvIsolation>>>: UnsafeUnpin,
impl UnwindSafe for BrowserProcessSpawnerwhere
Arc<RwLock<Arc<LivePolicyBaseline>>>: UnwindSafe,
Arc<RwLock<ProcessSessionPermissionState>>: UnwindSafe,
Arc<ChildWorkspacePolicyOverride>: UnwindSafe,
RawVecInner: UnwindSafe,
Arc<RwLock<ProcessEnvIsolation>>: UnwindSafe,
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