Struct linux_perf_data::RawUserRecord
source · [−]pub struct RawUserRecord<'a> {
pub record_type: UserRecordType,
pub endian: Endianness,
pub misc: u16,
pub data: RawData<'a>,
}Expand description
A raw user record.
Can be turned into a parsed UserRecord using RawUserRecord::parse.
Fields
record_type: UserRecordTypeendian: Endiannessmisc: u16data: RawData<'a>Implementations
sourceimpl<'a> RawUserRecord<'a>
impl<'a> RawUserRecord<'a>
pub fn parse(&self) -> Result<UserRecord<'a>, Error>
pub fn parse_impl<T: ByteOrder>(&self) -> Result<UserRecord<'a>, Error>
Trait Implementations
sourceimpl<'a> Clone for RawUserRecord<'a>
impl<'a> Clone for RawUserRecord<'a>
sourcefn clone(&self) -> RawUserRecord<'a>
fn clone(&self) -> RawUserRecord<'a>
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
Auto Trait Implementations
impl<'a> RefUnwindSafe for RawUserRecord<'a>
impl<'a> Send for RawUserRecord<'a>
impl<'a> Sync for RawUserRecord<'a>
impl<'a> Unpin for RawUserRecord<'a>
impl<'a> UnwindSafe for RawUserRecord<'a>
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