pub struct EventHeader(/* private fields */);Implementations§
Source§impl EventHeader
impl EventHeader
pub fn raw_type(&self) -> u8
pub fn size_words(&self) -> u16
pub fn event_type(&self) -> u8
pub fn num_args(&self) -> u8
pub fn thread_ref(&self) -> u8
pub fn category_ref(&self) -> u16
pub fn name_ref(&self) -> u16
pub fn set_raw_type(&mut self, value: u8)
pub fn set_size_words(&mut self, value: u16)
pub fn set_event_type(&mut self, value: u8)
pub fn set_num_args(&mut self, value: u8)
pub fn set_thread_ref(&mut self, value: u8)
pub fn set_category_ref(&mut self, value: u16)
pub fn set_name_ref(&mut self, value: u16)
pub fn empty() -> Self
Trait Implementations§
Source§impl<T> BitRange<T> for EventHeader
impl<T> BitRange<T> for EventHeader
Source§impl<T> BitRangeMut<T> for EventHeaderwhere
u64: BitRangeMut<T>,
impl<T> BitRangeMut<T> for EventHeaderwhere
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 EventHeader
impl Clone for EventHeader
Source§fn clone(&self) -> EventHeader
fn clone(&self) -> EventHeader
Returns a duplicate 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 EventHeader
impl Debug for EventHeader
Source§impl PartialEq for EventHeader
impl PartialEq for EventHeader
Source§impl TraceHeader for EventHeader
impl TraceHeader for EventHeader
fn set_size_words(&mut self, n: u16)
fn to_le_bytes(&self) -> [u8; 8]
impl Copy for EventHeader
impl Eq for EventHeader
impl StructuralPartialEq for EventHeader
Auto Trait Implementations§
impl Freeze for EventHeader
impl RefUnwindSafe for EventHeader
impl Send for EventHeader
impl Sync for EventHeader
impl Unpin for EventHeader
impl UnwindSafe for EventHeader
Blanket Implementations§
Source§impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
impl<T> BitMut for Twhere
T: BitRangeMut<u8>,
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§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.