Struct OfferRunner
pub struct OfferRunner {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub source_dictionary: Option<String>,
/* private fields */
}
Expand description
Declares a runner offered by a component to one of its children, which may have been offered by the component’s containing realm, the component itself, or one of its other children.
Fields§
§source: Option<Ref>
(Required) The provider of the capability relative to the component
itself. Must be parent
, self
, child
, or void
.
If set to void
, then the target must offer or use the capability with
OPTIONAL
or TRANSITIONAL
availability.
source_name: Option<String>
(Required) Name of the runner being offered.
target: Option<Ref>
(Required) Reference to the target. Must be child
, collection
, or
a dictionary capability
.
target_name: Option<String>
(Required) Name under which the capability is being offered.
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 OfferRunner
impl Clone for OfferRunner
§fn clone(&self) -> OfferRunner
fn clone(&self) -> OfferRunner
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for OfferRunner
impl Debug for OfferRunner
§impl<D> Decode<OfferRunner, D> for OfferRunnerwhere
D: ResourceDialect,
impl<D> Decode<OfferRunner, D> for OfferRunnerwhere
D: ResourceDialect,
§fn new_empty() -> OfferRunner
fn new_empty() -> OfferRunner
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl Default for OfferRunner
impl Default for OfferRunner
§fn default() -> OfferRunner
fn default() -> OfferRunner
§impl<D> Encode<OfferRunner, D> for &OfferRunnerwhere
D: ResourceDialect,
impl<D> Encode<OfferRunner, D> for &OfferRunnerwhere
D: ResourceDialect,
§impl PartialEq for OfferRunner
impl PartialEq for OfferRunner
§impl TypeMarker for OfferRunner
impl TypeMarker for OfferRunner
§type Owned = OfferRunner
type Owned = OfferRunner
§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 OfferRunner
impl ValueTypeMarker for OfferRunner
§type Borrowed<'a> = &'a OfferRunner
type Borrowed<'a> = &'a OfferRunner
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<OfferRunner as TypeMarker>::Owned,
) -> <OfferRunner as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<OfferRunner as TypeMarker>::Owned, ) -> <OfferRunner as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.