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§
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, )
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.