#[repr(u32)]pub enum EventType {
CapabilityRequested = 1,
Discovered = 3,
Destroyed = 4,
Resolved = 5,
Started = 6,
Stopped = 7,
DebugStarted = 8,
Unresolved = 9,
}
Expand description
These EventTypes are used for the EventStream protocol. They are FIDL versions of the EventType enum in hooks.rs and have the same meaning.
Variants§
CapabilityRequested = 1
A capability provided by this component has been requested. The event payload carries the request channel.
Discovered = 3
A component instance was discovered. This is the first stage in the lifecycle of components. Dispatched for dynamic children when they’re created, for static children when their parent is resolved, and for the root when the component manager starts.
Destroyed = 4
The instance is destroyed and no longer exists.
Resolved = 5
An instance’s declaration was resolved successfully for the first time.
Started = 6
This instance has started, according to component manager. However, if this is an executable component, the runner has further work to do to launch the component.
Stopped = 7
An instance was stopped successfully.
DebugStarted = 8
Similar to STARTED, except the payload will carry an eventpair that the subscriber could use to defer the launch of the component. This allows, e.g., a debugger to perform some setup before any processes are created.
Unresolved = 9
An instance was unresolved successfully.
Implementations§
Trait Implementations§
Source§impl<D> Decode<EventType, D> for EventTypewhere
D: ResourceDialect,
impl<D> Decode<EventType, D> for EventTypewhere
D: ResourceDialect,
Source§impl Ord for EventType
impl Ord for EventType
Source§impl PartialOrd for EventType
impl PartialOrd for EventType
Source§impl TypeMarker for EventType
impl TypeMarker for EventType
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
.Source§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 moreSource§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 EventType
impl ValueTypeMarker for EventType
Source§type Borrowed<'a> = EventType
type Borrowed<'a> = EventType
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreSource§fn borrow(
value: &<EventType as TypeMarker>::Owned,
) -> <EventType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<EventType as TypeMarker>::Owned, ) -> <EventType as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.