perf_event_attr

Struct perf_event_attr 

Source
#[repr(C)]
pub struct perf_event_attr {
Show 23 fields pub type_: u32, pub size: u32, pub config: u64, pub __bindgen_anon_1: perf_event_attr__bindgen_ty_1, pub sample_type: u64, pub read_format: u64, pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8]>, pub __bindgen_anon_2: perf_event_attr__bindgen_ty_2, pub bp_type: u32, pub __bindgen_anon_3: perf_event_attr__bindgen_ty_3, pub __bindgen_anon_4: perf_event_attr__bindgen_ty_4, pub branch_sample_type: u64, pub sample_regs_user: u64, pub sample_stack_user: u32, pub clockid: i32, pub sample_regs_intr: u64, pub aux_watermark: u32, pub sample_max_stack: u16, pub __reserved_2: u16, pub aux_sample_size: u32, pub __reserved_3: u32, pub sig_data: u64, pub config3: u64,
}

Fields§

§type_: u32§size: u32§config: u64§__bindgen_anon_1: perf_event_attr__bindgen_ty_1§sample_type: u64§read_format: u64§_bitfield_1: __BindgenBitfieldUnit<[u8; 8]>§__bindgen_anon_2: perf_event_attr__bindgen_ty_2§bp_type: u32§__bindgen_anon_3: perf_event_attr__bindgen_ty_3§__bindgen_anon_4: perf_event_attr__bindgen_ty_4§branch_sample_type: u64§sample_regs_user: u64§sample_stack_user: u32§clockid: i32§sample_regs_intr: u64§aux_watermark: u32§sample_max_stack: u16§__reserved_2: u16§aux_sample_size: u32§__reserved_3: u32§sig_data: u64§config3: u64

Implementations§

Source§

impl perf_event_attr

Source

pub fn disabled(&self) -> u64

Source

pub fn set_disabled(&mut self, val: u64)

Source

pub unsafe fn disabled_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_disabled_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn inherit(&self) -> u64

Source

pub fn set_inherit(&mut self, val: u64)

Source

pub unsafe fn inherit_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_inherit_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn pinned(&self) -> u64

Source

pub fn set_pinned(&mut self, val: u64)

Source

pub unsafe fn pinned_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_pinned_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclusive(&self) -> u64

Source

pub fn set_exclusive(&mut self, val: u64)

Source

pub unsafe fn exclusive_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclusive_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_user(&self) -> u64

Source

pub fn set_exclude_user(&mut self, val: u64)

Source

pub unsafe fn exclude_user_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_user_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_kernel(&self) -> u64

Source

pub fn set_exclude_kernel(&mut self, val: u64)

Source

pub unsafe fn exclude_kernel_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_kernel_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_hv(&self) -> u64

Source

pub fn set_exclude_hv(&mut self, val: u64)

Source

pub unsafe fn exclude_hv_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_hv_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_idle(&self) -> u64

Source

pub fn set_exclude_idle(&mut self, val: u64)

Source

pub unsafe fn exclude_idle_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_idle_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn mmap(&self) -> u64

Source

pub fn set_mmap(&mut self, val: u64)

Source

pub unsafe fn mmap_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_mmap_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn comm(&self) -> u64

Source

pub fn set_comm(&mut self, val: u64)

Source

pub unsafe fn comm_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_comm_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn freq(&self) -> u64

Source

pub fn set_freq(&mut self, val: u64)

Source

pub unsafe fn freq_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_freq_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn inherit_stat(&self) -> u64

Source

pub fn set_inherit_stat(&mut self, val: u64)

Source

pub unsafe fn inherit_stat_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_inherit_stat_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn enable_on_exec(&self) -> u64

Source

pub fn set_enable_on_exec(&mut self, val: u64)

Source

pub unsafe fn enable_on_exec_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_enable_on_exec_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn task(&self) -> u64

Source

pub fn set_task(&mut self, val: u64)

Source

pub unsafe fn task_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_task_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn watermark(&self) -> u64

Source

pub fn set_watermark(&mut self, val: u64)

Source

pub unsafe fn watermark_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_watermark_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn precise_ip(&self) -> u64

Source

pub fn set_precise_ip(&mut self, val: u64)

Source

pub unsafe fn precise_ip_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_precise_ip_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn mmap_data(&self) -> u64

Source

pub fn set_mmap_data(&mut self, val: u64)

Source

pub unsafe fn mmap_data_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_mmap_data_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn sample_id_all(&self) -> u64

Source

pub fn set_sample_id_all(&mut self, val: u64)

Source

pub unsafe fn sample_id_all_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_sample_id_all_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_host(&self) -> u64

Source

pub fn set_exclude_host(&mut self, val: u64)

Source

pub unsafe fn exclude_host_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_host_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_guest(&self) -> u64

Source

pub fn set_exclude_guest(&mut self, val: u64)

Source

pub unsafe fn exclude_guest_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_guest_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn exclude_callchain_kernel(&self) -> u64

Source

pub fn set_exclude_callchain_kernel(&mut self, val: u64)

Source

pub unsafe fn exclude_callchain_kernel_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_callchain_kernel_raw( this: *mut perf_event_attr, val: u64, )

Source

pub fn exclude_callchain_user(&self) -> u64

Source

pub fn set_exclude_callchain_user(&mut self, val: u64)

Source

pub unsafe fn exclude_callchain_user_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_exclude_callchain_user_raw( this: *mut perf_event_attr, val: u64, )

Source

pub fn mmap2(&self) -> u64

Source

pub fn set_mmap2(&mut self, val: u64)

Source

pub unsafe fn mmap2_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_mmap2_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn comm_exec(&self) -> u64

Source

pub fn set_comm_exec(&mut self, val: u64)

Source

pub unsafe fn comm_exec_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_comm_exec_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn use_clockid(&self) -> u64

Source

pub fn set_use_clockid(&mut self, val: u64)

Source

pub unsafe fn use_clockid_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_use_clockid_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn context_switch(&self) -> u64

Source

pub fn set_context_switch(&mut self, val: u64)

Source

pub unsafe fn context_switch_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_context_switch_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn write_backward(&self) -> u64

Source

pub fn set_write_backward(&mut self, val: u64)

Source

pub unsafe fn write_backward_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_write_backward_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn namespaces(&self) -> u64

Source

pub fn set_namespaces(&mut self, val: u64)

Source

pub unsafe fn namespaces_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_namespaces_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn ksymbol(&self) -> u64

Source

pub fn set_ksymbol(&mut self, val: u64)

Source

pub unsafe fn ksymbol_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_ksymbol_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn bpf_event(&self) -> u64

Source

pub fn set_bpf_event(&mut self, val: u64)

Source

pub unsafe fn bpf_event_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_bpf_event_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn aux_output(&self) -> u64

Source

pub fn set_aux_output(&mut self, val: u64)

Source

pub unsafe fn aux_output_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_aux_output_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn cgroup(&self) -> u64

Source

pub fn set_cgroup(&mut self, val: u64)

Source

pub unsafe fn cgroup_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_cgroup_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn text_poke(&self) -> u64

Source

pub fn set_text_poke(&mut self, val: u64)

Source

pub unsafe fn text_poke_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_text_poke_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn build_id(&self) -> u64

Source

pub fn set_build_id(&mut self, val: u64)

Source

pub unsafe fn build_id_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_build_id_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn inherit_thread(&self) -> u64

Source

pub fn set_inherit_thread(&mut self, val: u64)

Source

pub unsafe fn inherit_thread_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_inherit_thread_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn remove_on_exec(&self) -> u64

Source

pub fn set_remove_on_exec(&mut self, val: u64)

Source

pub unsafe fn remove_on_exec_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_remove_on_exec_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn sigtrap(&self) -> u64

Source

pub fn set_sigtrap(&mut self, val: u64)

Source

pub unsafe fn sigtrap_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set_sigtrap_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn __reserved_1(&self) -> u64

Source

pub fn set___reserved_1(&mut self, val: u64)

Source

pub unsafe fn __reserved_1_raw(this: *const perf_event_attr) -> u64

Source

pub unsafe fn set___reserved_1_raw(this: *mut perf_event_attr, val: u64)

Source

pub fn new_bitfield_1( disabled: u64, inherit: u64, pinned: u64, exclusive: u64, exclude_user: u64, exclude_kernel: u64, exclude_hv: u64, exclude_idle: u64, mmap: u64, comm: u64, freq: u64, inherit_stat: u64, enable_on_exec: u64, task: u64, watermark: u64, precise_ip: u64, mmap_data: u64, sample_id_all: u64, exclude_host: u64, exclude_guest: u64, exclude_callchain_kernel: u64, exclude_callchain_user: u64, mmap2: u64, comm_exec: u64, use_clockid: u64, context_switch: u64, write_backward: u64, namespaces: u64, ksymbol: u64, bpf_event: u64, aux_output: u64, cgroup: u64, text_poke: u64, build_id: u64, inherit_thread: u64, remove_on_exec: u64, sigtrap: u64, __reserved_1: u64, ) -> __BindgenBitfieldUnit<[u8; 8]>

Trait Implementations§

Source§

impl Clone for perf_event_attr

Source§

fn clone(&self) -> perf_event_attr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for perf_event_attr

Source§

fn default() -> perf_event_attr

Returns the “default value” for a type. Read more
Source§

impl FromBytes for perf_event_attr

Source§

fn ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the given source as a &Self. Read more
Source§

fn ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the prefix of the given source as a &Self without copying. Read more
Source§

fn ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: Immutable + KnownLayout,

Interprets the suffix of the given bytes as a &Self. Read more
Source§

fn mut_from_bytes( source: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the given source as a &mut Self. Read more
Source§

fn mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the prefix of the given source as a &mut Self without copying. Read more
Source§

fn mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the suffix of the given source as a &mut Self without copying. Read more
Source§

fn ref_from_bytes_with_elems( source: &[u8], count: usize, ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the given source as a &Self with a DST length equal to count. Read more
Source§

fn ref_from_prefix_with_elems( source: &[u8], count: usize, ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the prefix of the given source as a DST &Self with length equal to count. Read more
Source§

fn ref_from_suffix_with_elems( source: &[u8], count: usize, ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the suffix of the given source as a DST &Self with length equal to count. Read more
Source§

fn mut_from_bytes_with_elems( source: &mut [u8], count: usize, ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize> + Immutable,

Interprets the given source as a &mut Self with a DST length equal to count. Read more
Source§

fn mut_from_prefix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize>,

Interprets the prefix of the given source as a &mut Self with DST length equal to count. Read more
Source§

fn mut_from_suffix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout<PointerMetadata = usize>,

Interprets the suffix of the given source as a &mut Self with DST length equal to count. Read more
Source§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
Source§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
Source§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
Source§

impl FromZeros for perf_event_attr

Source§

fn zero(&mut self)

Overwrites self with zeros. Read more
Source§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
Source§

impl TryFromBytes for perf_event_attr

Source§

fn try_ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the given source as a &Self. Read more
Source§

fn try_ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the prefix of the given source as a &Self. Read more
Source§

fn try_ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the suffix of the given source as a &Self. Read more
Source§

fn try_mut_from_bytes( bytes: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the given source as a &mut Self without copying. Read more
Source§

fn try_mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self. Read more
Source§

fn try_mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self. Read more
Source§

fn try_ref_from_bytes_with_elems( source: &[u8], count: usize, ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the given source as a &Self with a DST length equal to count. Read more
Source§

fn try_ref_from_prefix_with_elems( source: &[u8], count: usize, ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the prefix of the given source as a &Self with a DST length equal to count. Read more
Source§

fn try_ref_from_suffix_with_elems( source: &[u8], count: usize, ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + Immutable,

Attempts to interpret the suffix of the given source as a &Self with a DST length equal to count. Read more
Source§

fn try_mut_from_bytes_with_elems( source: &mut [u8], count: usize, ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the given source as a &mut Self with a DST length equal to count. Read more
Source§

fn try_mut_from_prefix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self with a DST length equal to count. Read more
Source§

fn try_mut_from_suffix_with_elems( source: &mut [u8], count: usize, ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout<PointerMetadata = usize> + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self with a DST length equal to count. Read more
Source§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
Source§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
Source§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more
Source§

impl Copy for perf_event_attr

Source§

impl Immutable for perf_event_attr

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: Any,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn type_name(&self) -> &'static str

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<T, D> Encode<Ambiguous1, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
§

impl<T, D> Encode<Ambiguous2, D> for T
where D: ResourceDialect,

§

unsafe fn encode( self, _encoder: &mut Encoder<'_, D>, _offset: usize, _depth: Depth, ) -> Result<(), Error>

Encodes the object into the encoder’s buffers. Any handles stored in the object are swapped for Handle::INVALID. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> Into32<U> for T
where U: MultiArchFrom<T>,

Source§

fn into_32(self) -> U

Source§

impl<T, U> Into64<U> for T
where U: MultiArchFrom<T>,

Source§

fn into_64(self) -> U

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T, U> MultiArchFrom<T> for U
where U: From<T>,

Source§

fn from_64(value: T) -> U

Source§

fn from_32(value: T) -> U

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.