Skip to main content

Observable

Type Alias Observable 

Source
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,

Source

pub fn subscribe(&self) -> LocalBoxStream<'static, D>

Returns Stream into which underlying data updates will be emitted.