pub struct ContextSwitchHeader(/* private fields */);
Implementations§
Source§impl ContextSwitchHeader
impl ContextSwitchHeader
pub fn raw_type(&self) -> u8
pub fn size_words(&self) -> u16
pub fn num_args(&self) -> u8
pub fn cpu_id(&self) -> u16
pub fn outgoing_thread_state(&self) -> u8
pub fn record_type(&self) -> u8
pub fn set_raw_type(&mut self, value: u8)
pub fn set_size_words(&mut self, value: u16)
pub fn set_num_args(&mut self, value: u8)
pub fn set_cpu_id(&mut self, value: u16)
pub fn set_outgoing_thread_state(&mut self, value: u8)
pub fn set_record_type(&mut self, value: u8)
pub fn empty() -> Self
Trait Implementations§
Source§impl<T> BitRange<T> for ContextSwitchHeaderwhere
u64: BitRange<T>,
impl<T> BitRange<T> for ContextSwitchHeaderwhere
u64: BitRange<T>,
Source§impl<T> BitRangeMut<T> for ContextSwitchHeaderwhere
u64: BitRangeMut<T>,
impl<T> BitRangeMut<T> for ContextSwitchHeaderwhere
u64: BitRangeMut<T>,
Source§fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
Set a range of bits.
Source§impl Clone for ContextSwitchHeader
impl Clone for ContextSwitchHeader
Source§fn clone(&self) -> ContextSwitchHeader
fn clone(&self) -> ContextSwitchHeader
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 ContextSwitchHeader
impl Debug for ContextSwitchHeader
Source§impl PartialEq for ContextSwitchHeader
impl PartialEq for ContextSwitchHeader
Source§impl TraceHeader for ContextSwitchHeader
impl TraceHeader for ContextSwitchHeader
fn set_size_words(&mut self, n: u16)
fn to_le_bytes(&self) -> [u8; 8]
impl Copy for ContextSwitchHeader
impl Eq for ContextSwitchHeader
impl StructuralPartialEq for ContextSwitchHeader
Auto Trait Implementations§
impl Freeze for ContextSwitchHeader
impl RefUnwindSafe for ContextSwitchHeader
impl Send for ContextSwitchHeader
impl Sync for ContextSwitchHeader
impl Unpin for ContextSwitchHeader
impl UnwindSafe for ContextSwitchHeader
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