Trait HasRegistryEventString

Source
pub trait HasRegistryEventString {
    const REGISTRY_EVENT_STRING: &'static str;
}
Expand description

A specific trait only to define registry event matches. This is useful for event wrappers like [crate::events::ObjectEvents], which, while it does not have other information required to implement the crate::BusProperties trait, you can indeed add a match rule to the AT-SPI connection to subscribe to all sub events of [crate::events::ObjectEvents].

This trait is not object-safe.

Required Associated Constants§

Source

const REGISTRY_EVENT_STRING: &'static str

A registry event string for registering for event receiving via the RegistryProxy. This should be deprecated in favour of composing the string from BusProperties::DBUS_MEMBER and BusProperties::DBUS_INTERFACE.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl HasRegistryEventString for EventListenerEvents

Source§

const REGISTRY_EVENT_STRING: &'static str = "Event"

Source§

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

Source§

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