Trait HasInterfaceName

Source
pub trait HasInterfaceName {
    const DBUS_INTERFACE: &'static str;
}
Expand description

A specific trait only to define an interface name. 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 attach in interface name for all sub events of crate::events::ObjectEvents.

This trait is not object-safe.

Required Associated Constants§

Source

const DBUS_INTERFACE: &'static str

A static interface string for DBus. This should usually be a string that looks like this: "org.a11y.atspi.Event.*";

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 HasInterfaceName for EventListenerEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Registry"

Source§

impl HasInterfaceName for CacheEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Cache"

Source§

impl HasInterfaceName for DocumentEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Document"

Source§

impl HasInterfaceName for FocusEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Focus"

Source§

impl HasInterfaceName for KeyboardEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Keyboard"

Source§

impl HasInterfaceName for MouseEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Mouse"

Source§

impl HasInterfaceName for ObjectEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Object"

Source§

impl HasInterfaceName for TerminalEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Terminal"

Source§

impl HasInterfaceName for WindowEvents

Source§

const DBUS_INTERFACE: &'static str = "org.a11y.atspi.Event.Window"

Source§

impl<T: BusProperties> HasInterfaceName for T

Source§

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