Struct linux_perf_event_reader::records::CommonData
source · [−]pub struct CommonData {
pub pid: Option<i32>,
pub tid: Option<i32>,
pub timestamp: Option<u64>,
pub id: Option<u64>,
pub stream_id: Option<u64>,
pub cpu: Option<u32>,
}
Fields
pid: Option<i32>
tid: Option<i32>
timestamp: Option<u64>
id: Option<u64>
stream_id: Option<u64>
cpu: Option<u32>
Implementations
sourceimpl CommonData
impl CommonData
pub fn parse_sample(
data: RawData<'_>,
parse_info: &RecordParseInfo
) -> Result<Self, Error>
pub fn parse_sample_impl<T: ByteOrder>(
data: RawData<'_>,
parse_info: &RecordParseInfo
) -> Result<Self, Error>
pub fn parse_nonsample(
data: RawData<'_>,
parse_info: &RecordParseInfo
) -> Result<Self, Error>
pub fn parse_nonsample_impl<T: ByteOrder>(
data: RawData<'_>,
parse_info: &RecordParseInfo
) -> Result<Self, Error>
Trait Implementations
sourceimpl Clone for CommonData
impl Clone for CommonData
sourcefn clone(&self) -> CommonData
fn clone(&self) -> CommonData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CommonData
impl Debug for CommonData
sourceimpl Default for CommonData
impl Default for CommonData
sourcefn default() -> CommonData
fn default() -> CommonData
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for CommonData
impl Send for CommonData
impl Sync for CommonData
impl Unpin for CommonData
impl UnwindSafe for CommonData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more