Struct ExposeConfiguration
pub struct ExposeConfiguration {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
/* private fields */
}
Expand description
Declares a configuration capability exposed to a component’s containing realm, such as a capability exposed by the component or one of its children at runtime.
Fields§
§source: Option<Ref>
(Required) The provider of the capability relative to the component
itself. Must be self
or child
, or void
. If set to void
, then the
target must expose, offer, or use the capability with OPTIONAL
or
TRANSITIONAL
availability.
source_name: Option<String>
(Required) Name identifying the configuration, by which it was presented to this component.
target: Option<Ref>
(Required) The destination to which the capability is exposed.
target_name: Option<String>
(Required) The name by which the capability is being exposed.
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
See Availability
.
source_dictionary: Option<String>
(Optional) Path in a dictionary provided by source
which contains source_name
.
If this field is absent, source_name
identifies a capability directly routed
by source
. If set, source_name
identifies a capability nested inside this
dictionary.
Trait Implementations§
§impl Clone for ExposeConfiguration
impl Clone for ExposeConfiguration
§fn clone(&self) -> ExposeConfiguration
fn clone(&self) -> ExposeConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for ExposeConfiguration
impl Debug for ExposeConfiguration
§impl<D> Decode<ExposeConfiguration, D> for ExposeConfigurationwhere
D: ResourceDialect,
impl<D> Decode<ExposeConfiguration, D> for ExposeConfigurationwhere
D: ResourceDialect,
§fn new_empty() -> ExposeConfiguration
fn new_empty() -> ExposeConfiguration
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for ExposeConfiguration
impl Default for ExposeConfiguration
§fn default() -> ExposeConfiguration
fn default() -> ExposeConfiguration
§impl<D> Encode<ExposeConfiguration, D> for &ExposeConfigurationwhere
D: ResourceDialect,
impl<D> Encode<ExposeConfiguration, D> for &ExposeConfigurationwhere
D: ResourceDialect,
§impl PartialEq for ExposeConfiguration
impl PartialEq for ExposeConfiguration
§impl TypeMarker for ExposeConfiguration
impl TypeMarker for ExposeConfiguration
§type Owned = ExposeConfiguration
type Owned = ExposeConfiguration
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§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.§impl ValueTypeMarker for ExposeConfiguration
impl ValueTypeMarker for ExposeConfiguration
§type Borrowed<'a> = &'a ExposeConfiguration
type Borrowed<'a> = &'a ExposeConfiguration
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<ExposeConfiguration as TypeMarker>::Owned,
) -> <ExposeConfiguration as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<ExposeConfiguration as TypeMarker>::Owned, ) -> <ExposeConfiguration as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.