Trait dbus::MsgHandler
[−]
[src]
pub trait MsgHandler { fn handler_type(&self) -> MsgHandlerType; fn handle_msg(&mut self, _msg: &Message) -> Option<MsgHandlerResult> { ... } }
A trait for handling incoming messages.
Required Methods
fn handler_type(&self) -> MsgHandlerType
Type of messages for which the handler will be called
Note: The return value of this function might be cached, so it must return the same value all the time.
Provided Methods
fn handle_msg(&mut self, _msg: &Message) -> Option<MsgHandlerResult>
Function to be called if the message matches the MsgHandlerType
Implementations on Foreign Types
impl<M: MethodType<D>, D: DataType> MsgHandler for Arc<Tree<M, D>>
[src]
fn handle_msg(&mut self, msg: &Message) -> Option<MsgHandlerResult>
[src]
fn handler_type(&self) -> MsgHandlerType
[src]
Implementors
impl<M: MethodType<D>, D: DataType> MsgHandler for Tree<M, D>