pub struct ExposeResolver {
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 resolver exposed to a component’s containing realm, such as a resolver 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
.
source_name: Option<String>
(Required) The name of the resolver, by which it was presented to this component.
target: Option<Ref>
(Required) The destination to which the resolver is exposed
target_name: Option<String>
(Required) The name by which the capability is being exposed.
source_dictionary: Option<String>
(Optional) Path in a dictionary offered by ref
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 a
dictionary. The name of the top-level dictionary is given by the first path
segment of source_dictionary
, and source
is expected to route a
dictionary capability with this name. The rest of the path (possibly empty)
represents the path to a dictionary nested in the top-level dictionary which
is expected to contain source_name
.
Trait Implementations§
Source§impl Clone for ExposeResolver
impl Clone for ExposeResolver
Source§fn clone(&self) -> ExposeResolver
fn clone(&self) -> ExposeResolver
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExposeResolver
impl Debug for ExposeResolver
Source§impl<D: ResourceDialect> Decode<ExposeResolver, D> for ExposeResolver
impl<D: ResourceDialect> Decode<ExposeResolver, D> for ExposeResolver
Source§impl Default for ExposeResolver
impl Default for ExposeResolver
Source§fn default() -> ExposeResolver
fn default() -> ExposeResolver
Source§impl<D: ResourceDialect> Encode<ExposeResolver, D> for &ExposeResolver
impl<D: ResourceDialect> Encode<ExposeResolver, D> for &ExposeResolver
Source§impl PartialEq for ExposeResolver
impl PartialEq for ExposeResolver
Source§impl TypeMarker for ExposeResolver
impl TypeMarker for ExposeResolver
Source§type Owned = ExposeResolver
type Owned = ExposeResolver
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 ExposeResolver
impl ValueTypeMarker for ExposeResolver
Source§type Borrowed<'a> = &'a ExposeResolver
type Borrowed<'a> = &'a ExposeResolver
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more