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