Function omnisensor::register_properties_changed_handler
source · [−]pub(crate) async fn register_properties_changed_handler<H, R>(
bus: &SyncConnection,
cb: H
) -> Result<MsgMatch, Box<dyn Error>>where
H: FnOnce(Message, String, PropMap) -> R + Send + Copy + Sync + 'static,
R: Future<Output = ()> + Send,
Expand description
Arranges for cb
to be called on receipt of any PropertiesChanged
dbus
signals.
cb
is passed the signal message, the dbus interface to which it pertains,
and the associated properties.