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 strrelative binary path to /pkg in ns.
name: &'a strName of the binary to add to LaunchInfo. This will be truncated to
zx::sys::ZX_MAX_NAME_LEN bytes.
options: ProcessOptionsThe 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: NamespaceNamespace 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 LauncherProxyproxy 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.
Auto Trait Implementations§
impl<'a> Freeze for LauncherConfigArgs<'a>
impl<'a> !RefUnwindSafe for LauncherConfigArgs<'a>
impl<'a> Send for LauncherConfigArgs<'a>
impl<'a> Sync for LauncherConfigArgs<'a>
impl<'a> Unpin for LauncherConfigArgs<'a>
impl<'a> !UnwindSafe for LauncherConfigArgs<'a>
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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>
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>
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