#[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 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
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)