futures_rx::subject

Trait Subject

Source
pub trait Subject {
    type Item;

    // Required methods
    fn subscribe(&mut self) -> Observable<Self::Item>;
    fn close(&mut self);
    fn next(&mut self, value: Self::Item);
    fn for_each_subscription<F: FnMut(&mut Rc<RefCell<Controller<Event<Self::Item>>>>)>(
        &mut self,
        f: F,
    );
}

Required Associated Types§

Required Methods§

Source

fn subscribe(&mut self) -> Observable<Self::Item>

Source

fn close(&mut self)

Source

fn next(&mut self, value: Self::Item)

Source

fn for_each_subscription<F: FnMut(&mut Rc<RefCell<Controller<Event<Self::Item>>>>)>( &mut self, f: F, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§