pub struct SpawnSpec<'a> {
pub worker: &'a Path,
pub jail: &'a Path,
pub mode: &'a str,
pub limits: &'a Limits,
pub seccomp: bool,
pub exec_grants: &'a [PathBuf],
pub read_grants: &'a [PathBuf],
pub runtime_profile: RuntimeProfile,
pub provider: Option<&'a ProviderJail>,
}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.
exec_grants: &'a [PathBuf]Literal files the jail additionally grants read and execute on: the pinned engine and probe binaries. Never a directory.
read_grants: &'a [PathBuf]Literal files the jail additionally grants read on: the pinned weights and other read-only runtime files. Never a directory.
runtime_profile: RuntimeProfileThe measured jail profile this worker mode is authorized for.
provider: Option<&'a ProviderJail>The provider jail’s measured parameters, present only for the provider class. The class is the authorization and these are the necessity: without them the provider profile renders nothing wider than the base, so no other worker can reach the widened allowances by naming the class alone.
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
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> ⓘ
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> ⓘ
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