pub struct ProductCounter { /* private fields */ }Implementations§
Source§impl ProductCounter
impl ProductCounter
Sourcepub fn from_handle(handle: MetricHandle) -> MetricResult<Self>
pub fn from_handle(handle: MetricHandle) -> MetricResult<Self>
§Errors
Returns WrongKind if the handle is not the requested instrument kind.
Trait Implementations§
Source§impl Clone for ProductCounter
impl Clone for ProductCounter
Source§fn clone(&self) -> ProductCounter
fn clone(&self) -> ProductCounter
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ProductCounter
impl !RefUnwindSafe for ProductCounter
impl Send for ProductCounter
impl Sync for ProductCounter
impl Unpin for ProductCounter
impl UnsafeUnpin for ProductCounter
impl !UnwindSafe for ProductCounter
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