pub struct Program {
pub runner: Option<String>,
pub info: Option<Dictionary>,
/* private fields */
}
Expand description
A program declaration.
This declaration is set by executable components to designate the runner to use and pass runner-specific program information to it.
To learn more about runners, see: https://fuchsia.dev/fuchsia-src/glossary#runner
Fields§
§runner: Option<String>
The name of the runner to use to run the component. Must match a RunnerRegistration
in the
component’s environment. If this value is not supplied, the component must ‘use’ a runner.
If this value is supplied, the component may ‘use’ a runner, but it must be identical
(matching name, from environment).
info: Option<Dictionary>
(Required) Information about the program to run when the component is executed. The component manager provides the contents of this dictionary to the runner when executing this program.
For instance, this might contain a path to the program’s executable image, or program arguments.
- The keys represent namespaced properties, delimited by “.”.
- Properties may be nested in values, but only in the case of an object vector.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Program, D> for Program
impl<D: ResourceDialect> Decode<Program, D> for Program
Source§impl TypeMarker for Program
impl TypeMarker for Program
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.