pub struct ExposeDictionary {
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 dictionary exposed to a component’s containing realm, such as a dictionary exposed by the component or one of its children at runtime.
To learn more about dictionarys, see: https://fuchsia.dev/fuchsia-src/glossary#dictionary
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 dictionary, by which it was presented to this component.
target: Option<Ref>
(Required) The destination to which the dictionary is exposed: either the component’s realm or the framework.
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 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 ExposeDictionary
impl Clone for ExposeDictionary
Source§fn clone(&self) -> ExposeDictionary
fn clone(&self) -> ExposeDictionary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExposeDictionary
impl Debug for ExposeDictionary
Source§impl<D: ResourceDialect> Decode<ExposeDictionary, D> for ExposeDictionary
impl<D: ResourceDialect> Decode<ExposeDictionary, D> for ExposeDictionary
Source§impl Default for ExposeDictionary
impl Default for ExposeDictionary
Source§fn default() -> ExposeDictionary
fn default() -> ExposeDictionary
Source§impl<D: ResourceDialect> Encode<ExposeDictionary, D> for &ExposeDictionary
impl<D: ResourceDialect> Encode<ExposeDictionary, D> for &ExposeDictionary
Source§impl PartialEq for ExposeDictionary
impl PartialEq for ExposeDictionary
Source§impl TypeMarker for ExposeDictionary
impl TypeMarker for ExposeDictionary
Source§type Owned = ExposeDictionary
type Owned = ExposeDictionary
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 ExposeDictionary
impl ValueTypeMarker for ExposeDictionary
Source§type Borrowed<'a> = &'a ExposeDictionary
type Borrowed<'a> = &'a ExposeDictionary
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for ExposeDictionary
impl StructuralPartialEq for ExposeDictionary
Auto Trait Implementations§
impl Freeze for ExposeDictionary
impl RefUnwindSafe for ExposeDictionary
impl Send for ExposeDictionary
impl Sync for ExposeDictionary
impl Unpin for ExposeDictionary
impl UnwindSafe for ExposeDictionary
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
)