Trait medea_reactive::OnObservableFieldModification[][src]

pub trait OnObservableFieldModification<D> {
    fn on_modify(&mut self, data: &D);
}

Abstraction over catching all unique modifications of an ObservableField.

Required methods

fn on_modify(&mut self, data: &D)[src]

This function will be called on each ObservableField’s modification.

On this function call subscriber (which implements OnObservableFieldModification) should send an update to Stream or resolve Future.

Loading content...

Implementations on Foreign Types

impl<D: Clone> OnObservableFieldModification<D> for RefCell<Vec<UniversalSubscriber<D>>>[src]

Loading content...

Implementors

impl<D: Clone + 'static> OnObservableFieldModification<D> for SubStore<D>[src]

Loading content...