dbus-async 1.1.0

Asynchronous DBus library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::super::connection::Connection;
use dbus_message_parser::Message;

impl Connection {
    pub(super) fn unhandled(&mut self, msg: Message) {
        error!("MethodCall: UNHANDLED: {:?}", msg);
        if let Some(mut msg) = msg.unknown_path() {
            self.serial += 1;
            msg.set_serial(self.serial);

            if let Err(e) = self.message_sender.unbounded_send(msg) {
                error!("MethodCall: message_sender.unbounded_send: {:?}", e);
            }
        }
    }
}