Enum hooks::EventPayload
source · pub enum EventPayload {
CapabilityRequested {
source_moniker: Moniker,
name: String,
receiver: CapabilityReceiver,
},
Destroyed,
Resolved {
component: WeakInstanceToken,
decl: ComponentDecl,
},
Unresolved,
Started {
runtime: RuntimeInfo,
component_decl: ComponentDecl,
},
Stopped {
status: Status,
exit_code: Option<i64>,
stop_time: BootInstant,
stop_time_monotonic: MonotonicInstant,
execution_duration: MonotonicDuration,
requested_escrow: bool,
},
DebugStarted {
runtime_dir: Option<DirectoryProxy>,
break_on_start: Arc<EventPair>,
},
}
Variants§
CapabilityRequested
Destroyed
Resolved
Unresolved
Started
Stopped
Fields
§
stop_time: BootInstant
§
stop_time_monotonic: MonotonicInstant
§
execution_duration: MonotonicDuration
DebugStarted
Trait Implementations§
source§impl Clone for EventPayload
impl Clone for EventPayload
source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EventPayload
impl Debug for EventPayload
source§impl HasEventType for EventPayload
impl HasEventType for EventPayload
fn event_type(&self) -> EventType
Auto Trait Implementations§
impl Freeze for EventPayload
impl !RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl !UnwindSafe for EventPayload
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)