pub struct LegacyContextSwitchHeader(/* private fields */);
Implementations§
Source§impl LegacyContextSwitchHeader
impl LegacyContextSwitchHeader
pub fn raw_type(&self) -> u8
pub fn size_words(&self) -> u16
pub fn cpu_id(&self) -> u16
pub fn outgoing_thread_state(&self) -> u8
pub fn outgoing_thread(&self) -> u8
pub fn incoming_thread(&self) -> u8
pub fn outgoing_thread_priority(&self) -> u8
pub fn incoming_thread_priority(&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_cpu_id(&mut self, value: u16)
pub fn set_outgoing_thread_state(&mut self, value: u8)
pub fn set_outgoing_thread(&mut self, value: u8)
pub fn set_incoming_thread(&mut self, value: u8)
pub fn set_outgoing_thread_priority(&mut self, value: u8)
pub fn set_incoming_thread_priority(&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 LegacyContextSwitchHeaderwhere
u64: BitRange<T>,
impl<T> BitRange<T> for LegacyContextSwitchHeaderwhere
u64: BitRange<T>,
Source§impl<T> BitRangeMut<T> for LegacyContextSwitchHeaderwhere
u64: BitRangeMut<T>,
impl<T> BitRangeMut<T> for LegacyContextSwitchHeaderwhere
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 LegacyContextSwitchHeader
impl Clone for LegacyContextSwitchHeader
Source§fn clone(&self) -> LegacyContextSwitchHeader
fn clone(&self) -> LegacyContextSwitchHeader
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 LegacyContextSwitchHeader
impl Debug for LegacyContextSwitchHeader
Source§impl TraceHeader for LegacyContextSwitchHeader
impl TraceHeader for LegacyContextSwitchHeader
fn set_size_words(&mut self, n: u16)
fn to_le_bytes(&self) -> [u8; 8]
impl Copy for LegacyContextSwitchHeader
impl Eq for LegacyContextSwitchHeader
impl StructuralPartialEq for LegacyContextSwitchHeader
Auto Trait Implementations§
impl Freeze for LegacyContextSwitchHeader
impl RefUnwindSafe for LegacyContextSwitchHeader
impl Send for LegacyContextSwitchHeader
impl Sync for LegacyContextSwitchHeader
impl Unpin for LegacyContextSwitchHeader
impl UnwindSafe for LegacyContextSwitchHeader
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