Trait dbus::MsgHandler
[−]
[src]
pub trait MsgHandler { fn handle_ci(&mut self, ci: &ConnectionItem) -> Option<MsgHandlerResult> { ... } fn handle_msg(&mut self, _msg: &Message) -> Option<MsgHandlerResult> { ... } }
A trait for handling incoming messages. To use in combination with ConnectionItems
.
Provided Methods
fn handle_ci(&mut self, ci: &ConnectionItem) -> Option<MsgHandlerResult>
The default handle_ci function calls handle_msg, so implement the one that fits you better.
fn handle_msg(&mut self, _msg: &Message) -> Option<MsgHandlerResult>
Called for all incoming method calls, method returns, and signals.
Implementors
impl<M: MethodType<D>, D: DataType> MsgHandler for Tree<M, D>