pub struct CustomCounter {
pub task_1_count: AtomicU64,
pub task_2_count: AtomicU64,
pub task_3_count: AtomicU64,
pub task_4_count: AtomicU64,
pub task_5_count: AtomicU64,
pub task_6_count: AtomicU64,
pub task_7_count: AtomicU64,
pub task_8_count: AtomicU64,
pub task_9_count: AtomicU64,
pub task_10_count: AtomicU64,
}Fields§
§task_1_count: AtomicU64§task_2_count: AtomicU64§task_3_count: AtomicU64§task_4_count: AtomicU64§task_5_count: AtomicU64§task_6_count: AtomicU64§task_7_count: AtomicU64§task_8_count: AtomicU64§task_9_count: AtomicU64§task_10_count: AtomicU64Implementations§
Source§impl CustomCounter
impl CustomCounter
pub fn into_counting(&self) -> CustomCounterInfo
pub fn get_task_count(&self, t: u32) -> u64
Trait Implementations§
Source§impl Default for CustomCounter
impl Default for CustomCounter
Source§fn default() -> CustomCounter
fn default() -> CustomCounter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CustomCounter
impl RefUnwindSafe for CustomCounter
impl Send for CustomCounter
impl Sync for CustomCounter
impl Unpin for CustomCounter
impl UnwindSafe for CustomCounter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more