pub struct Counter { /* private fields */ }Implementations§
Source§impl Counter
impl Counter
pub fn new(descritpor: CounterDescriptor) -> Self
pub fn set(&mut self, value: impl Into<Option<f32>>)
pub fn update(&mut self, update_avg: bool)
pub fn name(&self) -> &'static str
pub fn history(&self) -> Option<HistoryIter<'_>>
pub fn enable_history(&mut self, samples: usize)
pub fn disable_history(&mut self)
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnwindSafe for Counter
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