pub struct HelperConfig {
pub jail: PathBuf,
pub worker: PathBuf,
pub adapter: String,
pub address_space_bytes: Option<u64>,
pub cpu_seconds: u64,
pub file_size_bytes: u64,
pub max_processes: u64,
pub seccomp: bool,
pub exec_grants: Vec<PathBuf>,
pub read_grants: Vec<PathBuf>,
}Expand description
Parsed helper arguments.
Fields§
§jail: PathBufThe jail directory, already the working directory.
worker: PathBufAbsolute path of the worker binary to exec.
adapter: StringThe adapter mode to exec into.
address_space_bytes: Option<u64>RLIMIT_AS in bytes, or None when the profile leaves the
limit unset.
cpu_seconds: u64RLIMIT_CPU in seconds.
file_size_bytes: u64RLIMIT_FSIZE in bytes.
max_processes: u64RLIMIT_NPROC, the process and thread cap.
seccomp: boolWhether the syscall filter engages. Linux only.
exec_grants: Vec<PathBuf>Literal files granted read and execute beyond the worker: the pinned engine and probe binaries.
read_grants: Vec<PathBuf>Literal files granted read only: the pinned weights and other read-only runtime files.
Auto Trait Implementations§
impl Freeze for HelperConfig
impl RefUnwindSafe for HelperConfig
impl Send for HelperConfig
impl Sync for HelperConfig
impl Unpin for HelperConfig
impl UnsafeUnpin for HelperConfig
impl UnwindSafe for HelperConfig
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