pub struct ThreadLifecycleEvent {
pub thread_id: ThreadId,
pub state: ThreadLifecycleState,
}Expand description
A transition in one thread driver’s liveness.
For one driver, ThreadLifecycleState::Live is always reported before
its matching ThreadLifecycleState::Idle. Because drivers respawn on
demand, one thread can report many live/idle pairs over its lifetime.
Fields§
§thread_id: ThreadIdThe thread whose driver changed state.
state: ThreadLifecycleStateThe driver’s new lifecycle state.
Trait Implementations§
Source§impl Clone for ThreadLifecycleEvent
impl Clone for ThreadLifecycleEvent
Source§fn clone(&self) -> ThreadLifecycleEvent
fn clone(&self) -> ThreadLifecycleEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThreadLifecycleEvent
impl Debug for ThreadLifecycleEvent
impl Eq for ThreadLifecycleEvent
Source§impl PartialEq for ThreadLifecycleEvent
impl PartialEq for ThreadLifecycleEvent
impl StructuralPartialEq for ThreadLifecycleEvent
Auto Trait Implementations§
impl Freeze for ThreadLifecycleEvent
impl RefUnwindSafe for ThreadLifecycleEvent
impl Send for ThreadLifecycleEvent
impl Sync for ThreadLifecycleEvent
impl Unpin for ThreadLifecycleEvent
impl UnsafeUnpin for ThreadLifecycleEvent
impl UnwindSafe for ThreadLifecycleEvent
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