Struct zbus::SignalReceiver[][src]

pub struct SignalReceiver<'r, 'p> { /* fields omitted */ }
Expand description

Receives signals for Proxy instances.

Use this to receive signals on a given connection for a bunch of proxies at the same time.

Implementations

Create a new SignalReceiver instance.

Get a reference to the associated connection.

Get a iterator for all the proxies in this receiver.

Watch for signals relevant to the proxy.

Panics

This method will panic if you try to add a proxy with a different associated connection than the one associated with this receiver.

Received and handle the next incoming signal on the associated connection.

This method will wait for signal messages on the associated connection and call any handler registered (through Proxy::connect_signal) with a proxy in this receiver.

If the signal message was handled by a handler, Ok(None) is returned. Otherwise, the received message is returned.

Handle the provided signal message.

Call any handler registered (through Proxy::connect_signal) with a proxy in this receiver.

If no errors are encountered, Ok(true) is returned if a handler was found and called for, the signal; Ok(false) otherwise.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.