Struct actix_utils::counter::Counter [−][src]
pub struct Counter(_);
Expand description
Simple counter with ability to notify task on reaching specific number
Counter could be cloned, total n-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.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Counter
impl !UnwindSafe for Counter
Blanket Implementations
Mutably borrows from an owned value. Read more