#[repr(u32)]pub enum EventType {
CapabilityRequested = 1,
DirectoryReady = 2,
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.
DirectoryReady = 2
A directory exposed to the framework by a component is available.
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§
source§impl EventType
impl EventType
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
is_unknown
Trait Implementations§
source§impl<D: ResourceDialect> Decode<EventType, D> for EventType
impl<D: ResourceDialect> Decode<EventType, D> for EventType
source§impl Ord for EventType
impl Ord for EventType
source§impl PartialEq for EventType
impl PartialEq for EventType
source§impl PartialOrd for EventType
impl PartialOrd for EventType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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
impl Copy for EventType
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
Blanket Implementations§
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
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)