Trait SignalReceiver
pub trait SignalReceiver<I, Ps>: 'static {
// Required method
fn call(&mut self, maybe_instance: I, params: Ps);
}
Expand description
Trait that is implemented for functions that can be connected to signals.
This is used in ConnectBuilder
. There are three variations of the I
(instance) parameter:
()
for global and associated (“static”) functions.&C
for&self
methods.&mut C
for&mut self
methods.
See also Signals in the book.
Required Methods§
fn call(&mut self, maybe_instance: I, params: Ps)
fn call(&mut self, maybe_instance: I, params: Ps)
Invoke the receiver on the given instance (possibly ()
) with params
.