Struct tokio_js_set_interval::IntervalManager[][src]

pub struct IntervalManager {
    pub counter: AtomicU64,
    pub running_intervals: Mutex<HashSet<u64>>,
}
Expand description

INTERNAL Used to manage intervals created by macro set_interval! Helps to assign unique IDs to intervals and stop them.

Fields

counter: AtomicU64

Monotonic incrementing counter from 0 to max value used for interval IDs.

running_intervals: Mutex<HashSet<u64>>

Contains only the IDs of dispatched and not cleared intervals.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.