Trait atspi_proxies::events::HasMatchRule

source ·
pub trait HasMatchRule {
    const MATCH_RULE_STRING: &'static str;
}
Expand description

A specific trait only to define match rules. This is useful for event wrappers like ObjectEvents, which, while it does not have other information required to implement the BusProperties trait, you can indeed add a match rule to the DBus connection to capture all sub events of ObjectEvents.

This trait is not object-safe.

Required Associated Constants§

source

const MATCH_RULE_STRING: &'static str

A static match rule string for DBus. This should usually be a string that looks like this: "type='signal',interface='org.a11y.atspi.Event.Object',member='PropertyChange'"; This should be deprecated in favour of composing the string from BusProperties::DBUS_MEMBER and BusProperties::DBUS_INTERFACE.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl HasMatchRule for DocumentEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Document'"

source§

impl HasMatchRule for CacheEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Cache'"

source§

impl HasMatchRule for EventListenerEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Registry'"

source§

impl HasMatchRule for FocusEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Focus'"

source§

impl HasMatchRule for KeyboardEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Keyboard'"

source§

impl HasMatchRule for MouseEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Mouse'"

source§

impl HasMatchRule for ObjectEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Object'"

source§

impl HasMatchRule for TerminalEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Terminal'"

source§

impl HasMatchRule for WindowEvents

source§

const MATCH_RULE_STRING: &'static str = "type='signal',interface='org.a11y.atspi.Event.Window'"

source§

impl<T> HasMatchRule for T
where T: BusProperties,

source§

const MATCH_RULE_STRING: &'static str = <T as BusProperties>::MATCH_RULE_STRING