pub struct UseEventStream {
pub source_name: Option<String>,
pub source: Option<Ref>,
pub scope: Option<Vec<Ref>>,
pub target_path: Option<String>,
pub availability: Option<Availability>,
pub filter: Option<Dictionary>,
/* private fields */
}
Expand description
Declares an EventStream used by a component.
Fields§
§source_name: Option<String>
(Required) The names of the event streams.
source: Option<Ref>
(Required) The provider of the event. Must be parent
, framework
, or child
.
scope: Option<Vec<Ref>>
(Optional) When an event is used from framework, the scope is required to specify the child (or array of children) which the event will be about. When the event is used 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_path: Option<String>
(Required) The path where the capability should be installed in the component’s namespace. Must be an absolute path starting with /.
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.
filter: Option<Dictionary>
(Optional) Filter for the event stream. The structure of the filter
depends on the event stream type. Only supported for the
CapabilityRequested
event type.
Trait Implementations§
source§impl Clone for UseEventStream
impl Clone for UseEventStream
source§fn clone(&self) -> UseEventStream
fn clone(&self) -> UseEventStream
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UseEventStream
impl Debug for UseEventStream
source§impl<D: ResourceDialect> Decode<UseEventStream, D> for UseEventStream
impl<D: ResourceDialect> Decode<UseEventStream, D> for UseEventStream
source§impl Default for UseEventStream
impl Default for UseEventStream
source§fn default() -> UseEventStream
fn default() -> UseEventStream
source§impl<D: ResourceDialect> Encode<UseEventStream, D> for &UseEventStream
impl<D: ResourceDialect> Encode<UseEventStream, D> for &UseEventStream
source§impl PartialEq for UseEventStream
impl PartialEq for UseEventStream
source§fn eq(&self, other: &UseEventStream) -> bool
fn eq(&self, other: &UseEventStream) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl TypeMarker for UseEventStream
impl TypeMarker for UseEventStream
§type Owned = UseEventStream
type Owned = UseEventStream
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 UseEventStream
impl ValueTypeMarker for UseEventStream
§type Borrowed<'a> = &'a UseEventStream
type Borrowed<'a> = &'a UseEventStream
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Persistable for UseEventStream
impl StructuralPartialEq for UseEventStream
Auto Trait Implementations§
impl Freeze for UseEventStream
impl RefUnwindSafe for UseEventStream
impl Send for UseEventStream
impl Sync for UseEventStream
impl Unpin for UseEventStream
impl UnwindSafe for UseEventStream
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
)