pub type ProgressableHashMap<K, V> = HashMap<K, V, SubStore<(K, V)>, Guarded<(K, V)>>;
Expand description
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::Guard
s.
Aliased Type§
pub struct ProgressableHashMap<K, V> { /* private fields */ }
Implementations§
Source§impl<K, V> ProgressableHashMap<K, V>
impl<K, V> ProgressableHashMap<K, V>
Sourcepub fn when_insert_processed(&self) -> Processed<'static> ⓘ
pub fn when_insert_processed(&self) -> Processed<'static> ⓘ
Returns Future
resolving when all insertion updates will be
processed by HashMap::on_insert()
subscribers.
Sourcepub fn when_remove_processed(&self) -> Processed<'static> ⓘ
pub fn when_remove_processed(&self) -> Processed<'static> ⓘ
Returns Future
resolving when all remove updates will be processed
by HashMap::on_remove()
subscribers.
Sourcepub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
pub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
Returns Future
resolving when all insert and remove updates will be
processed by subscribers.