Trait dbus::channel::MatchingReceiver
source · [−]pub trait MatchingReceiver {
type F;
fn start_receive(&self, m: MatchRule<'static>, f: Self::F) -> Token;
fn stop_receive(&self, id: Token) -> Option<(MatchRule<'static>, Self::F)>;
}
Expand description
Abstraction over different connections that receive data
Required Associated Types
Required Methods
sourcefn start_receive(&self, m: MatchRule<'static>, f: Self::F) -> Token
fn start_receive(&self, m: MatchRule<'static>, f: Self::F) -> Token
Add a callback to be called in case a message matches.
Returns an id that can be used to remove the callback.