pub type Observable<D> = ObservableField<D, RefCell<Vec<UniversalSubscriber<D>>>>;Expand description
ObservableField that allows to subscribe to all changes
(ObservableField::subscribe) and to concrete changes
(ObservableField::when and ObservableField::when_eq).
Aliased Type§
pub struct Observable<D> { /* private fields */ }Implementations§
Source§impl<D> Observable<D>where
D: Clone + 'static,
impl<D> Observable<D>where
D: Clone + 'static,
Sourcepub fn subscribe(&self) -> LocalBoxStream<'static, D>
pub fn subscribe(&self) -> LocalBoxStream<'static, D>
Returns Stream into which underlying data updates will be emitted.