pub struct SpawnSpec<'a> {
pub worker: &'a Path,
pub jail: &'a Path,
pub mode: &'a str,
pub limits: &'a Limits,
pub seccomp: bool,
}Expand description
What one adapter invocation needs from a backend.
Fields§
§worker: &'a PathAbsolute path of the worker binary.
jail: &'a PathAbsolute path of the per-run jail directory.
mode: &'a strThe worker mode to execute after sandbox setup.
limits: &'a LimitsResource limits the helper applies before exec.
seccomp: boolWhether the syscall filter layer engages. Always true for adapter work. The network probe disables it once, on Linux, to observe namespace denial directly, and a second probe stage proves the filter kills socket creation.
Auto Trait Implementations§
impl<'a> Freeze for SpawnSpec<'a>
impl<'a> RefUnwindSafe for SpawnSpec<'a>
impl<'a> Send for SpawnSpec<'a>
impl<'a> Sync for SpawnSpec<'a>
impl<'a> Unpin for SpawnSpec<'a>
impl<'a> UnsafeUnpin for SpawnSpec<'a>
impl<'a> UnwindSafe for SpawnSpec<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more