pub enum ThreadEvent {
Start {
pid: ProcessId,
parent: Option<ProcessId>,
spawn: Option<SpawnSpec>,
},
Enter {
pid: ProcessId,
},
End {
pid: ProcessId,
killed: bool,
},
}Expand description
One moment of a thread’s life.
Variants§
Start
pid was created; parent is the process whose fork created it
and spawn the branch it runs (a static process has neither).
Enter
pid is about to run again after a suspension.
End
pid is gone; killed is false when it ran to completion.
Trait Implementations§
Source§impl Clone for ThreadEvent
impl Clone for ThreadEvent
Source§impl Debug for ThreadEvent
impl Debug for ThreadEvent
impl Eq for ThreadEvent
Source§impl PartialEq for ThreadEvent
impl PartialEq for ThreadEvent
impl StructuralPartialEq for ThreadEvent
Auto Trait Implementations§
impl Freeze for ThreadEvent
impl RefUnwindSafe for ThreadEvent
impl Send for ThreadEvent
impl Sync for ThreadEvent
impl Unpin for ThreadEvent
impl UnsafeUnpin for ThreadEvent
impl UnwindSafe for ThreadEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.