FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IEventPatternSource

    trait · ferroui-reactive · v0.5.0

    trait IEventPatternSource<S, A>
    

    An event that notifies the event patterns of a sequence as a sender and arguments (IEventPatternSource<TEventArgs>), returned by to_event_pattern.

    View source

    Members

    add

    fn add(self: &Self, handler: Rc<dyn Fn(S, A) -> ()>) -> u64
    

    Adds a handler of the events (OnNext += handler); returns the token that removes it.

    Source

    remove

    fn remove(self: &Self, token: u64) -> bool
    

    Removes the handler of token (OnNext -= handler). False when the token is unknown.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.