Struct raii_counter::WeakCounter[][src]

pub struct WeakCounter(_);

A 'weak' Counter that does not affect the count.

Methods

impl WeakCounter
[src]

This method is inherently racey. Assume the count will have changed once the value is observed.

Consumes self, becomes a Counter

Instead of clone + upgrade, this will only clone once Defaults to a Counter of size 1

Instead of clone + upgrade, this will only clone once

Trait Implementations

impl Clone for WeakCounter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for WeakCounter

impl Sync for WeakCounter