Struct perf_event_data::RecordMetadata
source · pub struct RecordMetadata { /* private fields */ }Expand description
Extra record data emitted by the kernel that is common to all records.
Implementations§
source§impl RecordMetadata
impl RecordMetadata
sourcepub fn sample_id(&self) -> &SampleId
pub fn sample_id(&self) -> &SampleId
If sample_id_all was set when configuring the record then this will
contain a subset of the fields configured to be sampled.
Note that, even if sample_id_all is set, MMAP and SAMPLE records will
always have an empty SampleId. If you want the SampleId fields
to be set then configure the kernel to generate MMAP2 records
instead.
Trait Implementations§
source§impl Clone for RecordMetadata
impl Clone for RecordMetadata
source§fn clone(&self) -> RecordMetadata
fn clone(&self) -> RecordMetadata
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 moreAuto Trait Implementations§
impl RefUnwindSafe for RecordMetadata
impl Send for RecordMetadata
impl Sync for RecordMetadata
impl Unpin for RecordMetadata
impl UnwindSafe for RecordMetadata
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