pub struct Component {
pub program: Option<Program>,
pub uses: Option<Vec<Use>>,
pub exposes: Option<Vec<Expose>>,
pub offers: Option<Vec<Offer>>,
pub capabilities: Option<Vec<Capability>>,
pub children: Option<Vec<Child>>,
pub collections: Option<Vec<Collection>>,
pub environments: Option<Vec<Environment>>,
pub facets: Option<Dictionary>,
pub config: Option<ConfigSchema>,
/* private fields */
}
Expand description
A component declaration.
This information is typically encoded in the component manifest (.cm file) if it has one or may be generated at runtime by a component resolver for those that don’t.
Fields§
§program: Option<Program>
(Optional) Information about the program to run when the component is executed. Omitted for non-executable components.
uses: Option<Vec<Use>>
(Optional) List of capabilities used by the component. These consist of capabilities offered to the component that are installed in its incoming namespace.
The used capabilities must be unique and non-overlapping.
exposes: Option<Vec<Expose>>
(Optional) List of capabilities exposed by the component. These consist of
capabilities that are made visible to the parent. The parent
may offer
these capabilities to its children, but not use
them.
The exposed capabilities must be unique and non-overlapping.
offers: Option<Vec<Offer>>
(Optional) List of capabilities offered to the component’s children. These consist
of capabilities that the given children may use
, which may come from a
child, the parent, or the component’s own outgoing namespace.
The offered capabilities must be unique and non-overlapping.
capabilities: Option<Vec<Capability>>
(Optional) List of capabilities defined by the component.
children: Option<Vec<Child>>
(Optional) The component’s statically instantiated children. The children must have unique names.
collections: Option<Vec<Collection>>
(Optional) The component’s collections. The collections must have unique names.
environments: Option<Vec<Environment>>
(Optional) List of environments created by this component. Environments are assigned to children and control aspects of a child component’s runtime.
facets: Option<Dictionary>
(Optional) Additional metadata about the component.
config: Option<ConfigSchema>
(Optional) The schema of the component’s configuration interface.
Trait Implementations§
Source§impl<D: ResourceDialect> Decode<Component, D> for Component
impl<D: ResourceDialect> Decode<Component, D> for Component
Source§impl TypeMarker for Component
impl TypeMarker for Component
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 Component
impl ValueTypeMarker for Component
impl Persistable for Component
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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
)