pub struct CSwitchEtwEvent {
pub new_thread_id: Option<u32>,
pub old_thread_id: Option<u32>,
pub new_thread_priority: Option<i32>,
pub old_thread_priority: Option<i32>,
pub previous_c_state: Option<u32>,
pub old_thread_wait_ideal_processor: Option<i32>,
pub new_thread_wait_time: Option<u32>,
pub old_thread_wait_reason_enum_or_int: Option<OldThreadWaitReasonEnumOrInt>,
pub old_thread_wait_mode_enum_or_int: Option<OldThreadWaitModeEnumOrInt>,
pub old_thread_state_enum_or_int: Option<OldThreadStateEnumOrInt>,
}Expand description
Proto definition based on the Thread_v2 CSwitch class definition See: https://learn.microsoft.com/en-us/windows/win32/etw/cswitch
Fields§
§new_thread_id: Option<u32>New thread ID after the switch.
old_thread_id: Option<u32>Previous thread ID.
new_thread_priority: Option<i32>Thread priority of the new thread.
old_thread_priority: Option<i32>Thread priority of the previous thread.
previous_c_state: Option<u32>The index of the C-state that was last used by the processor. A value of 0 represents the lightest idle state with higher values representing deeper C-states.
old_thread_wait_ideal_processor: Option<i32>Ideal wait time of the previous thread.
new_thread_wait_time: Option<u32>Wait time for the new thread.
old_thread_wait_reason_enum_or_int: Option<OldThreadWaitReasonEnumOrInt>§old_thread_wait_mode_enum_or_int: Option<OldThreadWaitModeEnumOrInt>§old_thread_state_enum_or_int: Option<OldThreadStateEnumOrInt>Implementations§
Source§impl CSwitchEtwEvent
impl CSwitchEtwEvent
Sourcepub fn new_thread_id(&self) -> u32
pub fn new_thread_id(&self) -> u32
Returns the value of new_thread_id, or the default value if new_thread_id is unset.
Sourcepub fn old_thread_id(&self) -> u32
pub fn old_thread_id(&self) -> u32
Returns the value of old_thread_id, or the default value if old_thread_id is unset.
Sourcepub fn new_thread_priority(&self) -> i32
pub fn new_thread_priority(&self) -> i32
Returns the value of new_thread_priority, or the default value if new_thread_priority is unset.
Sourcepub fn old_thread_priority(&self) -> i32
pub fn old_thread_priority(&self) -> i32
Returns the value of old_thread_priority, or the default value if old_thread_priority is unset.
Sourcepub fn previous_c_state(&self) -> u32
pub fn previous_c_state(&self) -> u32
Returns the value of previous_c_state, or the default value if previous_c_state is unset.
Sourcepub fn old_thread_wait_ideal_processor(&self) -> i32
pub fn old_thread_wait_ideal_processor(&self) -> i32
Returns the value of old_thread_wait_ideal_processor, or the default value if old_thread_wait_ideal_processor is unset.
Sourcepub fn new_thread_wait_time(&self) -> u32
pub fn new_thread_wait_time(&self) -> u32
Returns the value of new_thread_wait_time, or the default value if new_thread_wait_time is unset.
Trait Implementations§
Source§impl Clone for CSwitchEtwEvent
impl Clone for CSwitchEtwEvent
Source§fn clone(&self) -> CSwitchEtwEvent
fn clone(&self) -> CSwitchEtwEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CSwitchEtwEvent
impl Debug for CSwitchEtwEvent
Source§impl Default for CSwitchEtwEvent
impl Default for CSwitchEtwEvent
Source§impl Hash for CSwitchEtwEvent
impl Hash for CSwitchEtwEvent
Source§impl Message for CSwitchEtwEvent
impl Message for CSwitchEtwEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CSwitchEtwEvent
impl PartialEq for CSwitchEtwEvent
Source§fn eq(&self, other: &CSwitchEtwEvent) -> bool
fn eq(&self, other: &CSwitchEtwEvent) -> bool
self and other values to be equal, and is used by ==.