pub struct UserReadData { /* private fields */ }
Expand description
Data read from a call to Sampler::read_user
.
Implementations§
Source§impl UserReadData
impl UserReadData
Sourcepub fn time_enabled(&self) -> Duration
pub fn time_enabled(&self) -> Duration
The total time for which the counter was enabled at the time of reading.
If the architecture and counter support it this will be cycle-accurate
Sourcepub fn time_running(&self) -> Duration
pub fn time_running(&self) -> Duration
The total time for which the counter was running at the time of reading.
Sourcepub fn scaled_count(&self) -> Option<u64>
pub fn scaled_count(&self) -> Option<u64>
The value of the counter, scaled to reflect time_enabled
.
Trait Implementations§
Source§impl Clone for UserReadData
impl Clone for UserReadData
Source§fn clone(&self) -> UserReadData
fn clone(&self) -> UserReadData
Returns a copy 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 Debug for UserReadData
impl Debug for UserReadData
impl Copy for UserReadData
Auto Trait Implementations§
impl Freeze for UserReadData
impl RefUnwindSafe for UserReadData
impl Send for UserReadData
impl Sync for UserReadData
impl Unpin for UserReadData
impl UnwindSafe for UserReadData
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