Skip to main content

IStreamPlugin

Trait IStreamPlugin 

Source
pub trait IStreamPlugin {
    // Required methods
    fn match_(&self, reference: &WeakValue) -> bool;
    fn start(
        &self,
        reference: &WeakValue,
    ) -> Option<Rc<dyn IObservable<Option<BoxedValue>>>>;
}
Expand description

Defines a plugin that handles the ^ stream binding operator.

Required Methods§

Source

fn match_(&self, reference: &WeakValue) -> bool

Checks whether this plugin handles the specified value.

Source

fn start( &self, reference: &WeakValue, ) -> Option<Rc<dyn IObservable<Option<BoxedValue>>>>

Starts producing output based on the specified value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§