Type Definition medea_reactive::ProgressableHashMap[][src]

type ProgressableHashMap<K, V> = HashMap<K, V, SubStore<(K, V)>, Guarded<(K, V)>>;

Reactive hash map based on HashMap with additional functionality of tracking progress made by its subscribers. Its HashMap::on_insert() and HashMap::on_remove() subscriptions return values wrapped in progressable::Guarded, and implementation tracks all progressable::Guards.

Implementations

impl<K, V> ProgressableHashMap<K, V> where
    K: Hash + Eq + Clone + 'static,
    V: Clone + 'static, 
[src]

pub fn when_insert_processed(&self) -> Processed<'static>

Notable traits for Processed<'a, T>

impl<'a, T> Future for Processed<'a, T> type Output = T;
[src]

Returns Future resolving when all insertion updates will be processed by HashMap::on_insert() subscribers.

pub fn when_remove_processed(&self) -> Processed<'static>

Notable traits for Processed<'a, T>

impl<'a, T> Future for Processed<'a, T> type Output = T;
[src]

Returns Future resolving when all remove updates will be processed by HashMap::on_remove() subscribers.

pub fn when_all_processed(&self) -> AllProcessed<'static>

Notable traits for AllProcessed<'a, T>

impl<'a, T> Future for AllProcessed<'a, T> type Output = T;
[src]

Returns Future resolving when all insert and remove updates will be processed by subscribers.