pub struct BrowserSandboxProfile { /* private fields */ }Expand description
Dedicated OS sandbox profile for launching a session-scoped headless browser
under desktop --sandbox workspace.
Implementations§
Source§impl BrowserSandboxProfile
impl BrowserSandboxProfile
Sourcepub fn new(
executable: impl Into<PathBuf>,
profile_dir: impl Into<PathBuf>,
) -> Self
pub fn new( executable: impl Into<PathBuf>, profile_dir: impl Into<PathBuf>, ) -> Self
Creates a browser sandbox profile for executable using an isolated
temporary profile_dir (which also serves as the browser’s HOME and
TMPDIR).
Sourcepub fn with_env_isolation(self, env_isolation: ProcessEnvIsolation) -> Self
pub fn with_env_isolation(self, env_isolation: ProcessEnvIsolation) -> Self
Overrides the environment isolation policy stripped before launching the sandboxed browser process.
Sourcepub fn with_denied_paths(self, paths: impl IntoIterator<Item = PathBuf>) -> Self
pub fn with_denied_paths(self, paths: impl IntoIterator<Item = PathBuf>) -> Self
Adds explicit paths that must stay inaccessible to the browser (such as
the workspace root, host $HOME, and Merry providers/).
On Linux Landlock these paths are omitted from the allowlist; on macOS
Seatbelt they are also emitted as explicit last-wins (deny file-*)
rules.
Trait Implementations§
Source§impl Clone for BrowserSandboxProfile
impl Clone for BrowserSandboxProfile
Auto Trait Implementations§
impl Forget for BrowserSandboxProfile
impl Freeze for BrowserSandboxProfilewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OsString>: Freeze,
PhantomData<PathBuf>: Freeze,
impl Move for BrowserSandboxProfile
impl RefUnwindSafe for BrowserSandboxProfile
impl Send for BrowserSandboxProfilewhere
RawVecInner: Send,
impl Sync for BrowserSandboxProfilewhere
RawVecInner: Sync,
impl Unpin for BrowserSandboxProfile
impl UnsafeUnpin for BrowserSandboxProfilewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<OsString>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for BrowserSandboxProfilewhere
RawVecInner: 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