pub trait DeferredCounter<P: Atomic + 'static> {
    fn deferred_add(&'static self, v: P::T) -> DeferredAdd<'static, P>;

    fn deferred_inc(&'static self) -> DeferredAdd<'static, P> { ... }
}
Expand description

An extension trait for GenericCounter to provide methods for incrementing a counter once an RAII-style guard has been dropped.

Required Methods

Increase the counter by v when the guard is dropped.

Provided Methods

Increase the counter by 1 when the guard is dropped.

Implementations on Foreign Types

Implementors