pub struct HelperConfig {
pub jail: PathBuf,
pub worker: PathBuf,
pub adapter: String,
pub address_space_bytes: u64,
pub cpu_seconds: u64,
pub file_size_bytes: u64,
pub max_processes: u64,
pub seccomp: bool,
}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: u64RLIMIT_AS in bytes.
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.
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