Struct ntex::util::counter::Counter [−][src]
pub struct Counter(_);
Expand description
Simple counter with ability to notify task on reaching specific number
Counter could be cloned, total count is shared across all clones.
Implementations
Get counter guard.
Check if counter is not at capacity. If counter at capacity it registers notification for current task.
Auto Trait Implementations
impl !RefUnwindSafe for Counter
impl !UnwindSafe for Counter
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more