Struct mdl::signal::SignalerAsync[][src]

pub struct SignalerAsync { /* fields omitted */ }

Methods

impl SignalerAsync
[src]

subscribe a callback to a signal This callback will be called with all signals that starts with the signal string, for example, if you subscribe a callback to the signal "custom-signal", this callback will have the following behaviour:

signal | f is called -------------------------------+------------- "custom-signal" | true "custom-signal2" | true "custom-signal-with more text" | true "custom" | false "custom-signa" | false "other signal" | false

This method returns the callback id that can be used to unsubscribe

Unsubscribe a callback by id. Use the id returned in the subscribe method to remove this signal

Trait Implementations

impl Clone for SignalerAsync
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for SignalerAsync
[src]

Formats the value using the given formatter. Read more

impl Signaler for SignalerAsync
[src]

emit a signal that trigger all callbacks subscribed to this signal

Auto Trait Implementations