pub struct LauncherConfigArgs<'a> {
pub bin_path: &'a str,
pub name: &'a str,
pub options: ProcessOptions,
pub args: Option<Vec<String>>,
pub ns: Namespace,
pub job: Option<Job>,
pub handle_infos: Option<Vec<HandleInfo>>,
pub name_infos: Option<Vec<NameInfo>>,
pub environs: Option<Vec<String>>,
pub launcher: &'a LauncherProxy,
pub loader_proxy_chan: Option<Channel>,
pub executable_vmo: Option<Vmo>,
}
Expand description
Arguments to configure_launcher
function.
Fields§
§bin_path: &'a str
relative binary path to /pkg in ns
.
name: &'a str
Name of the binary to add to LaunchInfo
. This will be truncated to
zx::sys::ZX_MAX_NAME_LEN
bytes.
options: ProcessOptions
The options used to create the process.
args: Option<Vec<String>>
Arguments to binary. Binary path will be automatically prepended so that should not be passed as first argument.
ns: Namespace
Namespace for binary process to be launched.
job: Option<Job>
Job in which process is launched. If None, a child job would be created in default one.
handle_infos: Option<Vec<HandleInfo>>
Extra handle infos to add. This function all ready adds handles for default job and svc loader.
name_infos: Option<Vec<NameInfo>>
Extra names to add to namespace. by default only names from ns
are added.
environs: Option<Vec<String>>
Process environment to add to launcher.
launcher: &'a LauncherProxy
proxy for fuchsia.proc.Launcher
.
loader_proxy_chan: Option<Channel>
Custom loader proxy. If None, /pkg/lib would be used to load libraries.
executable_vmo: Option<Vmo>
VMO containing mapping to executable binary. If None, it would be loaded from /pkg.