pub struct HostSetup {
pub grants: Vec<String>,
pub documents_root: PathBuf,
pub files_root: PathBuf,
pub program_args: Vec<String>,
pub allow_exec: Vec<PathBuf>,
}Expand description
The hosts a run is given, and the directories they are confined to.
Fields§
§grants: Vec<String>The capabilities [run.<name>] allow granted.
documents_root: PathBufThe one directory the documents host may read.
files_root: PathBufThe one directory the files host may reach.
program_args: Vec<String>The arguments the program itself receives, which process.args
reports and nothing else sees.
allow_exec: Vec<PathBuf>The executables process.run may start. Empty allows none.
Auto Trait Implementations§
impl Freeze for HostSetup
impl RefUnwindSafe for HostSetup
impl Send for HostSetup
impl Sync for HostSetup
impl Unpin for HostSetup
impl UnsafeUnpin for HostSetup
impl UnwindSafe for HostSetup
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