pub struct Dynamic { /* private fields */ }Expand description
An event exposed as a dynamic PMU via the sysfs filesystem.
This type has no operations beyond implementing Event. Use
DynamicBuilder to build one.
Implementations§
Source§impl Dynamic
impl Dynamic
Sourcepub fn builder(pmu: impl AsRef<Path>) -> Result<DynamicBuilder>
pub fn builder(pmu: impl AsRef<Path>) -> Result<DynamicBuilder>
Construct a new dynamic builder for the provided perf PMU.
See DynamicBuilder::new.
Trait Implementations§
Source§impl Event for Dynamic
impl Event for Dynamic
Source§fn update_attrs(self, attr: &mut perf_event_attr)
fn update_attrs(self, attr: &mut perf_event_attr)
Update the
perf_event_attr struct so that it will record the
requested event. Read moreSource§fn update_attrs_with_data(
self,
attr: &mut perf_event_attr,
) -> Option<Arc<dyn EventData>>
fn update_attrs_with_data( self, attr: &mut perf_event_attr, ) -> Option<Arc<dyn EventData>>
Update the
perf_event_attr struct so that it will record the
requested event. Read moreimpl Copy for Dynamic
Auto Trait Implementations§
impl Freeze for Dynamic
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnwindSafe for Dynamic
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