pub struct BwrapLauncher { /* private fields */ }Expand description
Linux bubblewrap realization of the runtime-owned sandbox authority boundary.
Implementations§
Source§impl BwrapLauncher
impl BwrapLauncher
Sourcepub fn new(
bwrap: PathBuf,
prlimit: PathBuf,
programs: BTreeMap<ProgramRef, PathBuf>,
sources: BTreeMap<String, PathBuf>,
) -> Self
pub fn new( bwrap: PathBuf, prlimit: PathBuf, programs: BTreeMap<ProgramRef, PathBuf>, sources: BTreeMap<String, PathBuf>, ) -> Self
Creates a boot-configured launcher. Paths are authority supplied, never request supplied.
Sourcepub fn confinement_status(&self) -> BwrapConfinementStatus
pub fn confinement_status(&self) -> BwrapConfinementStatus
Probes the exact boot-resolved membrane executables without dispatch.
Trait Implementations§
Source§impl Clone for BwrapLauncher
impl Clone for BwrapLauncher
Source§fn clone(&self) -> BwrapLauncher
fn clone(&self) -> BwrapLauncher
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BwrapLauncher
impl Debug for BwrapLauncher
Source§impl SandboxLauncher for BwrapLauncher
impl SandboxLauncher for BwrapLauncher
Source§fn launch(
&self,
request: &SandboxRequest,
cancellation: &ProcessCancellation,
) -> SandboxAttempt
fn launch( &self, request: &SandboxRequest, cancellation: &ProcessCancellation, ) -> SandboxAttempt
Attempts the request and reports a complete, refusal, stop, or unknown outcome.
Auto Trait Implementations§
impl Freeze for BwrapLauncher
impl RefUnwindSafe for BwrapLauncher
impl Send for BwrapLauncher
impl Sync for BwrapLauncher
impl Unpin for BwrapLauncher
impl UnsafeUnpin for BwrapLauncher
impl UnwindSafe for BwrapLauncher
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