delay_map
Overview
This crate contains two data structures, [HashSetDelay
] and [HashMapDelay
]. These
behave like the standard library HashSet and HashMaps with the added feature that entries
inserted into the mappings expire after a fixed period of time.
Usage
Creating a map
use HashMapDelay;
use *;
// Set a default timeout for entries
let mut delay_map = new;
block_on;