pub struct ProcessArgs {
pub args: Vec<CString>,
pub environment_variables: Vec<CString>,
pub namespace_entries: Vec<NamespaceEntry>,
pub handles: Vec<StartupHandle>,
}
Fields§
§args: Vec<CString>
Command-line arguments passed to the process.
environment_variables: Vec<CString>
Environment variables passed to the process.
namespace_entries: Vec<NamespaceEntry>
Entries added to the process namespace.
The paths in the namespace must be non-overlapping. See https://fuchsia.dev/fuchsia-src/concepts/process/namespaces for details.
handles: Vec<StartupHandle>
Handles passed to the process.
Implementations§
Source§impl ProcessArgs
impl ProcessArgs
pub fn new() -> Self
pub fn add_default_loader(&mut self) -> Result<&mut Self, Status>
pub fn add_args<I, T>(&mut self, args: I) -> &mut Self
pub fn add_environment_variables<I, T>( &mut self, environment_variables: I, ) -> &mut Self
pub fn add_handles<I>(&mut self, handles: I) -> &mut Selfwhere
I: IntoIterator<Item = StartupHandle>,
Trait Implementations§
Source§impl Default for ProcessArgs
impl Default for ProcessArgs
Source§fn default() -> ProcessArgs
fn default() -> ProcessArgs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProcessArgs
impl RefUnwindSafe for ProcessArgs
impl Send for ProcessArgs
impl Sync for ProcessArgs
impl Unpin for ProcessArgs
impl UnwindSafe for ProcessArgs
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