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.Source§impl ValueTypeMarker for Program
impl ValueTypeMarker for Program
impl Persistable for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl Freeze for Program
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)