pub struct UseDictionary {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target_path: Option<String>,
pub dependency_type: Option<DependencyType>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
/* private fields */
}
Fields§
§source: Option<Ref>
(Required) The provider of the dictionary relative to the component itself.
source_name: Option<String>
(Required) Name identifying the directory, by which it was presented to this component.
target_path: Option<String>
(Required) The path where the capability should be installed in the component’s namespace.
Must be an absolute path starting with /.
dependency_type: Option<DependencyType>
(Required) The dependency type this use represents.
A component which offers a capability to a child from itself and uses a
capability from the same child, must mark the dependency as weak
. A
weak
dependency implies that the capability may become unavailable at
any point. Taking a strong dependency on a child’s capability will
cause this the child to shut down before its parent. When using a weak
dependency, the parent shuts down before the child.
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
If set to required
, the component is likely to malfunction if this
capability is not provided. If set to optional
, the component can
handle the capability’s absence.
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§
Source§impl Clone for UseDictionary
impl Clone for UseDictionary
Source§fn clone(&self) -> UseDictionary
fn clone(&self) -> UseDictionary
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UseDictionary
impl Debug for UseDictionary
Source§impl<D> Decode<UseDictionary, D> for UseDictionarywhere
D: ResourceDialect,
impl<D> Decode<UseDictionary, D> for UseDictionarywhere
D: ResourceDialect,
Source§fn new_empty() -> UseDictionary
fn new_empty() -> UseDictionary
Self
. The specific value does not matter,
since it will be overwritten by decode
.Source§impl Default for UseDictionary
impl Default for UseDictionary
Source§fn default() -> UseDictionary
fn default() -> UseDictionary
Source§impl<D> Encode<UseDictionary, D> for &UseDictionarywhere
D: ResourceDialect,
impl<D> Encode<UseDictionary, D> for &UseDictionarywhere
D: ResourceDialect,
Source§impl PartialEq for UseDictionary
impl PartialEq for UseDictionary
Source§impl TypeMarker for UseDictionary
impl TypeMarker for UseDictionary
Source§type Owned = UseDictionary
type Owned = UseDictionary
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
.Source§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 moreSource§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 UseDictionary
impl ValueTypeMarker for UseDictionary
Source§type Borrowed<'a> = &'a UseDictionary
type Borrowed<'a> = &'a UseDictionary
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<UseDictionary as TypeMarker>::Owned,
) -> <UseDictionary as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<UseDictionary as TypeMarker>::Owned, ) -> <UseDictionary as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.