pub trait EventTypeProperties {
// Required methods
fn member(&self) -> &'static str;
fn interface(&self) -> &'static str;
fn match_rule(&self) -> &'static str;
fn registry_string(&self) -> &'static str;
}Expand description
Describes properties of a specific event type.
DBusmember nameDBusinterface name
Together, the member and interface name can describe a specific event type.
Likewise, the path and sender bus name collectively make up an ObjectRef, which is a way to uniquely identify an individual accessible item available to atspi.
The latter is available via the EventProperties trait.
This can also be generalized, for example this is implemented for crate::Event by dispatching to the matching variants.
NOTE: to use EventProperties on wrapper types, like Event, you must enable the “enum-dispatch” feature.
This trait is object-safe.
Required Methods§
fn member(&self) -> &'static str
fn interface(&self) -> &'static str
fn match_rule(&self) -> &'static str
fn registry_string(&self) -> &'static str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".