pub struct ContextSwitchEvent {
pub provider: Option<Provider>,
pub cpu_id: u16,
pub timestamp: i64,
pub outgoing_thread_state: ThreadState,
pub outgoing_thread_id: ThreadKoid,
pub incoming_thread_id: ThreadKoid,
pub args: Vec<Arg>,
}
Fields§
§provider: Option<Provider>
§cpu_id: u16
§timestamp: i64
§outgoing_thread_state: ThreadState
§outgoing_thread_id: ThreadKoid
§incoming_thread_id: ThreadKoid
§args: Vec<Arg>
Trait Implementations§
Source§impl Clone for ContextSwitchEvent
impl Clone for ContextSwitchEvent
Source§fn clone(&self) -> ContextSwitchEvent
fn clone(&self) -> ContextSwitchEvent
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 ContextSwitchEvent
impl Debug for ContextSwitchEvent
Source§impl PartialEq for ContextSwitchEvent
impl PartialEq for ContextSwitchEvent
impl StructuralPartialEq for ContextSwitchEvent
Auto Trait Implementations§
impl Freeze for ContextSwitchEvent
impl RefUnwindSafe for ContextSwitchEvent
impl Send for ContextSwitchEvent
impl Sync for ContextSwitchEvent
impl Unpin for ContextSwitchEvent
impl UnwindSafe for ContextSwitchEvent
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)