Struct raii_counter::WeakCounter [] [src]

pub struct WeakCounter(_);

This is a 'weak' reference to the Counter, so it will not affect the count

Methods

impl WeakCounter
[src]

[src]

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

[src]

Consumes self, becomes a Counter

[src]

Instead of clone + upgrade, this will only clone once

Trait Implementations

impl Clone for WeakCounter
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for WeakCounter

impl Sync for WeakCounter