pub struct OfferEventStream {
pub source: Option<Ref>,
pub source_name: Option<String>,
pub scope: Option<Vec<Ref>>,
pub target: Option<Ref>,
pub target_name: Option<String>,
pub availability: Option<Availability>,
/* private fields */
}
Expand description
Declares an event stream offered by a component.
Fields§
§source: Option<Ref>
(Required) The provider of the capability relative to the component
itself. Must be parent
, framework
, child
, or void
. If set to
void
, then the target must offer or use the capability with OPTIONAL
or TRANSITIONAL
availability.
source_name: Option<String>
(Required) Name of the event being offered.
scope: Option<Vec<Ref>>
(Optional) When an event is offered from framework, the scope is required and allows one to define the child (or array of children) which the event is about. When the event is offered from parent, the scope can be used to downscope the event to a certain child scope, otherwise the event will carry the scope coming from the parent.
target: Option<Ref>
(Required) The destination to which the event stream is offered.
target_name: Option<String>
(Required) Name under which the event stream is being offered.
availability: Option<Availability>
(Optional, defaults to REQUIRED
) The availability of this capability.
If set to required
, the target may use or offer the capability with
either required
or optional
availability. If set to optional
, the
target must use or offer the capability with optional
availability.
The same_as_target
value causes this offer’s availability to match the
availability set in the target.
Trait Implementations§
source§impl Clone for OfferEventStream
impl Clone for OfferEventStream
source§fn clone(&self) -> OfferEventStream
fn clone(&self) -> OfferEventStream
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OfferEventStream
impl Debug for OfferEventStream
source§impl<D: ResourceDialect> Decode<OfferEventStream, D> for OfferEventStream
impl<D: ResourceDialect> Decode<OfferEventStream, D> for OfferEventStream
source§impl Default for OfferEventStream
impl Default for OfferEventStream
source§fn default() -> OfferEventStream
fn default() -> OfferEventStream
source§impl<D: ResourceDialect> Encode<OfferEventStream, D> for &OfferEventStream
impl<D: ResourceDialect> Encode<OfferEventStream, D> for &OfferEventStream
source§impl PartialEq for OfferEventStream
impl PartialEq for OfferEventStream
source§fn eq(&self, other: &OfferEventStream) -> bool
fn eq(&self, other: &OfferEventStream) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for OfferEventStream
impl TypeMarker for OfferEventStream
§type Owned = OfferEventStream
type Owned = OfferEventStream
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 OfferEventStream
impl ValueTypeMarker for OfferEventStream
§type Borrowed<'a> = &'a OfferEventStream
type Borrowed<'a> = &'a OfferEventStream
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for OfferEventStream
impl StructuralPartialEq for OfferEventStream
Auto Trait Implementations§
impl Freeze for OfferEventStream
impl RefUnwindSafe for OfferEventStream
impl Send for OfferEventStream
impl Sync for OfferEventStream
impl Unpin for OfferEventStream
impl UnwindSafe for OfferEventStream
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
)