Trait TimeCounterTrait

Source
pub trait TimeCounterTrait {
    // Required methods
    fn cmp(a: i64, b: i64) -> bool;
    fn counter(&self) -> &AtomicI64;

    // Provided methods
    fn update(&self, new_value: i64) { ... }
    fn get(&self) -> i64 { ... }
}

Required Methods§

Source

fn cmp(a: i64, b: i64) -> bool

Source

fn counter(&self) -> &AtomicI64

Provided Methods§

Source

fn update(&self, new_value: i64)

Source

fn get(&self) -> i64

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§