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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RecordMetadata
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