pub trait Observer<Item, Err>where
Item: ConditionallySendSync,
Err: ConditionallySendSync,{
// Required methods
fn send_signal(&self, signal: Signal<Item, Err>) -> Result<(), Error>;
fn is_complete(&self) -> bool;
// Provided methods
fn send_result(&self, result: Result<Item, Err>) -> Result<(), Error> { ... }
fn send(&self, item: Item) -> Result<(), Error> { ... }
fn error(&self, err: Err) -> Result<(), Error> { ... }
fn complete(&self) { ... }
}
Expand description
Re-export of wasmrs_rx traits and core types. The wasmrs-rx implementation of an Rx Observer trait
Required Methods§
Sourcefn is_complete(&self) -> bool
fn is_complete(&self) -> bool
Returns true if the observer has been closed.