pub type ProgressableVec<T> = Vec<T, SubStore<T>, Guarded<T>>;Expand description
Reactive vector based on Vec with additional functionality of tracking
progress made by its subscribers.
Its Vec::on_push() and Vec::on_remove() subscriptions return values
wrapped in a progressable::Guarded, and the implementation tracks all
progressable::Guards.
Aliased Type§
pub struct ProgressableVec<T> { /* private fields */ }Implementations§
Source§impl<T> ProgressableVec<T>where
T: Clone + 'static,
impl<T> ProgressableVec<T>where
T: Clone + 'static,
Sourcepub fn when_push_processed(&self) -> Processed<'static> ⓘ
pub fn when_push_processed(&self) -> Processed<'static> ⓘ
Returns Future resolving when all push updates will be processed by
Vec::on_push() 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 Vec::on_remove() subscribers.
Sourcepub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
pub fn when_all_processed(&self) -> AllProcessed<'static> ⓘ
Returns Future resolving when all push and remove updates will be
processed by subscribers.