pub struct PerfInterface { /* private fields */ }Implementations§
Source§impl PerfInterface
impl PerfInterface
pub fn time_micros(&self) -> Option<PerfTimeMicros>
pub fn tick_counter(&self) -> Option<PerfTick>
pub fn cpu_features(&self) -> Option<CpuFeatures>
pub fn log(&self) -> bool
pub fn register_counter(&self, counter: Pin<&mut PerfCounter>) -> bool
pub fn start_counter(&self, counter: Pin<&mut PerfCounter>) -> bool
pub fn stop_counter(&self, counter: Pin<&mut PerfCounter>) -> bool
Trait Implementations§
Source§impl Clone for PerfInterface
impl Clone for PerfInterface
Source§fn clone(&self) -> PerfInterface
fn clone(&self) -> PerfInterface
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PerfInterface
impl Debug for PerfInterface
Source§impl Default for PerfInterface
impl Default for PerfInterface
Source§fn default() -> PerfInterface
fn default() -> PerfInterface
Returns the “default value” for a type. Read more
impl Copy for PerfInterface
Auto Trait Implementations§
impl Freeze for PerfInterface
impl RefUnwindSafe for PerfInterface
impl Send for PerfInterface
impl Sync for PerfInterface
impl Unpin for PerfInterface
impl UnsafeUnpin for PerfInterface
impl UnwindSafe for PerfInterface
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