Trait medea_reactive::subscribers_store::SubscribersStore[][src]

pub trait SubscribersStore<T, O>: Default {
    fn send_update(&self, value: T);
fn subscribe(&self) -> LocalBoxStream<'static, O>;
#[must_use] fn wrap(&self, value: T) -> O; }

Store for updates subscribers.

Required methods

fn send_update(&self, value: T)[src]

Sends data update to the all subscribers.

fn subscribe(&self) -> LocalBoxStream<'static, O>[src]

Creates new updates subscription.

Returns Stream yielding elements sent with SubscribersStore::send_update() calls.

#[must_use]fn wrap(&self, value: T) -> O[src]

Wraps the provided value to the output type.

Loading content...

Implementors

impl<T> SubscribersStore<T, Guarded<T>> for medea_reactive::subscribers_store::progressable::SubStore<T> where
    T: Clone + 'static, 
[src]

impl<T> SubscribersStore<T, T> for medea_reactive::subscribers_store::common::SubStore<T> where
    T: Clone + 'static, 
[src]

Loading content...