#[repr(C)]pub struct perf_event_mmap_page {Show 26 fields
pub version: u32,
pub compat_version: u32,
pub lock: u32,
pub index: u32,
pub offset: i64,
pub time_enabled: u64,
pub time_running: u64,
pub __bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1,
pub pmc_width: u16,
pub time_shift: u16,
pub time_mult: u32,
pub time_offset: u64,
pub time_zero: u64,
pub size: u32,
pub __reserved_1: u32,
pub time_cycles: u64,
pub time_mask: u64,
pub __reserved: [u8; 928],
pub data_head: u64,
pub data_tail: u64,
pub data_offset: u64,
pub data_size: u64,
pub aux_head: u64,
pub aux_tail: u64,
pub aux_offset: u64,
pub aux_size: u64,
}Fields§
§version: u32§compat_version: u32§lock: u32§index: u32§offset: i64§time_enabled: u64§time_running: u64§__bindgen_anon_1: perf_event_mmap_page__bindgen_ty_1§pmc_width: u16§time_shift: u16§time_mult: u32§time_offset: u64§time_zero: u64§size: u32§__reserved_1: u32§time_cycles: u64§time_mask: u64§__reserved: [u8; 928]§data_head: u64§data_tail: u64§data_offset: u64§data_size: u64§aux_head: u64§aux_tail: u64§aux_offset: u64§aux_size: u64Trait Implementations§
Source§impl Clone for perf_event_mmap_page
impl Clone for perf_event_mmap_page
Source§fn clone(&self) -> perf_event_mmap_page
fn clone(&self) -> perf_event_mmap_page
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 Default for perf_event_mmap_page
impl Default for perf_event_mmap_page
Source§fn default() -> perf_event_mmap_page
fn default() -> perf_event_mmap_page
Returns the “default value” for a type. Read more
Source§impl IntoBytes for perf_event_mmap_page
impl IntoBytes for perf_event_mmap_page
Source§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
impl Copy for perf_event_mmap_page
impl Immutable for perf_event_mmap_page
Auto Trait Implementations§
impl Freeze for perf_event_mmap_page
impl RefUnwindSafe for perf_event_mmap_page
impl Send for perf_event_mmap_page
impl Sync for perf_event_mmap_page
impl Unpin for perf_event_mmap_page
impl UnwindSafe for perf_event_mmap_page
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more