pub struct ExposeConfiguration {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
/* private fields */
}
Expand description
Declares a configuration capability exposed to a component’s containing realm, such as a capability 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
, 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 configuration, by which it was presented to this component.
target: Option<Ref>
(Required) The destination to which the capability is exposed.
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
.
Trait Implementations§
source§impl Clone for ExposeConfiguration
impl Clone for ExposeConfiguration
source§fn clone(&self) -> ExposeConfiguration
fn clone(&self) -> ExposeConfiguration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExposeConfiguration
impl Debug for ExposeConfiguration
source§impl Decode<ExposeConfiguration> for ExposeConfiguration
impl Decode<ExposeConfiguration> for ExposeConfiguration
source§impl Default for ExposeConfiguration
impl Default for ExposeConfiguration
source§fn default() -> ExposeConfiguration
fn default() -> ExposeConfiguration
Returns the “default value” for a type. Read more
source§impl Encode<ExposeConfiguration> for &ExposeConfiguration
impl Encode<ExposeConfiguration> for &ExposeConfiguration
source§impl PartialEq for ExposeConfiguration
impl PartialEq for ExposeConfiguration
source§fn eq(&self, other: &ExposeConfiguration) -> bool
fn eq(&self, other: &ExposeConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for ExposeConfiguration
impl TypeMarker for ExposeConfiguration
§type Owned = ExposeConfiguration
type Owned = ExposeConfiguration
The owned Rust type which this FIDL type decodes into.
source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
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
Returns true if the memory layout of
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 ExposeConfiguration
impl ValueTypeMarker for ExposeConfiguration
§type Borrowed<'a> = &'a ExposeConfiguration
type Borrowed<'a> = &'a ExposeConfiguration
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for ExposeConfiguration
impl StructuralPartialEq for ExposeConfiguration
Auto Trait Implementations§
impl Freeze for ExposeConfiguration
impl RefUnwindSafe for ExposeConfiguration
impl Send for ExposeConfiguration
impl Sync for ExposeConfiguration
impl Unpin for ExposeConfiguration
impl UnwindSafe for ExposeConfiguration
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Mutably borrows from an owned value. Read more