IEventSource
trait · ferroui-reactive · v0.5.0
trait IEventSource<T>
An event that notifies the values of a sequence (IEventSource<T>), returned by to_event.
Members
add
fn add(self: &Self, handler: Rc<dyn Fn(T) -> ()>) -> u64
Adds a handler of the values (OnNext += handler); returns the token that removes it. The
handler is subscribed to the sequence until it is removed or the sequence ends.
remove
fn remove(self: &Self, token: u64) -> bool
Removes the handler of token (OnNext -= handler) and disposes its subscription. False
when the token is unknown: removed already, or its subscription ended with the sequence.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.