Struct actix_net::counter::Counter[][src]

pub struct Counter(_);

Simple counter with ability to notify task on reaching specific number

Counter could be cloned, total ncount is shared across all clones.

Methods

impl Counter
[src]

Create Counter instance and set max value.

Check if counter is not at capacity

Get total number of acquired counts

Trait Implementations

impl Clone for Counter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Counter

impl !Sync for Counter