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
Create new counter guard, incrementing the counter.
Notify current task and return true if counter is at capacity.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Counter
impl !UnwindSafe for Counter
Blanket Implementations
Mutably borrows from an owned value. Read more
