pub struct NativeOptions {
pub process: bool,
pub env: bool,
pub stdio: bool,
pub clock: bool,
pub allow_symlinks: bool,
pub read_only: bool,
pub max_open_files: usize,
pub max_bytes_per_op: usize,
}Expand description
Native profile authority and resource limits. Construction grants only the selected authority; process/environment are disabled by default.
Fields§
§process: boolGrant shell/process execution and pipes (shell commands are unconfined).
env: boolGrant reads of the process environment.
stdio: boolGrant standard input/output/error access.
clock: boolGrant wall and CPU clock observations.
allow_symlinks: boolAllow symlinks; targets may escape the root. Default false.
read_only: boolDeny filesystem mutation.
max_open_files: usizeMaximum simultaneously open files (temporary handles included).
max_bytes_per_op: usizeMaximum bytes requested in one host operation.
Trait Implementations§
Source§impl Clone for NativeOptions
impl Clone for NativeOptions
Source§impl Debug for NativeOptions
impl Debug for NativeOptions
Auto Trait Implementations§
impl Freeze for NativeOptions
impl RefUnwindSafe for NativeOptions
impl Send for NativeOptions
impl Sync for NativeOptions
impl Unpin for NativeOptions
impl UnsafeUnpin for NativeOptions
impl UnwindSafe for NativeOptions
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