pub struct UseDirectory {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target_path: Option<String>,
pub rights: Option<Operations>,
pub subdir: Option<String>,
pub dependency_type: Option<DependencyType>,
pub availability: Option<Availability>,
pub source_dictionary: Option<String>,
/* private fields */
}
Expand description
Declares a directory used by a component, which was offered to it.
Fields§
§source: Option<Ref>
(Required) The provider of the directory relative to the component
itself. Must be parent
, framework
, or child
.
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 /.
rights: Option<Operations>
(Required) The rights required by the component to use this directory.
subdir: Option<String>
(Optional) The subdirectory of this directory to use instead of the root.
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 UseDirectory
impl Clone for UseDirectory
Source§fn clone(&self) -> UseDirectory
fn clone(&self) -> UseDirectory
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for UseDirectory
impl Debug for UseDirectory
Source§impl<D: ResourceDialect> Decode<UseDirectory, D> for UseDirectory
impl<D: ResourceDialect> Decode<UseDirectory, D> for UseDirectory
Source§impl Default for UseDirectory
impl Default for UseDirectory
Source§fn default() -> UseDirectory
fn default() -> UseDirectory
Source§impl<D: ResourceDialect> Encode<UseDirectory, D> for &UseDirectory
impl<D: ResourceDialect> Encode<UseDirectory, D> for &UseDirectory
Source§impl PartialEq for UseDirectory
impl PartialEq for UseDirectory
Source§impl TypeMarker for UseDirectory
impl TypeMarker for UseDirectory
Source§type Owned = UseDirectory
type Owned = UseDirectory
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 UseDirectory
impl ValueTypeMarker for UseDirectory
Source§type Borrowed<'a> = &'a UseDirectory
type Borrowed<'a> = &'a UseDirectory
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for UseDirectory
impl StructuralPartialEq for UseDirectory
Auto Trait Implementations§
impl Freeze for UseDirectory
impl RefUnwindSafe for UseDirectory
impl Send for UseDirectory
impl Sync for UseDirectory
impl Unpin for UseDirectory
impl UnwindSafe for UseDirectory
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
)