pub struct EventsSet { /* private fields */ }Implementations§
Source§impl EventsSet
impl EventsSet
pub fn new(counters: &[Counter]) -> Result<Self, PapiError>
pub fn len(&self) -> usize
pub fn try_clone(&self) -> Result<Self, PapiError>
pub fn start(&mut self) -> Result<(), PapiError>
pub fn read(&mut self) -> Result<&[c_longlong], PapiError>
pub fn read_into<'a>( &self, counters: &'a mut [c_longlong], ) -> Result<&'a [c_longlong], PapiError>
pub fn accum(&mut self) -> Result<&[c_longlong], PapiError>
pub fn stop(&mut self) -> Result<&[c_longlong], PapiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventsSet
impl RefUnwindSafe for EventsSet
impl Send for EventsSet
impl Sync for EventsSet
impl Unpin for EventsSet
impl UnwindSafe for EventsSet
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