pub trait EventProperties {
// Required methods
fn sender(&self) -> UniqueName<'_>;
fn path(&self) -> ObjectPath<'_>;
// Provided method
fn object_ref(&self) -> ObjectRef<'_> { ... }
}Expand description
EventProperties allows access to the internals of an event, specifically:
- The
DBUsname which sent the event. - The
ObjectPath, a unique id for a given application. - Collectively, this is called an
ObjectRef.
This trait is object-safe.
Required Methods§
fn sender(&self) -> UniqueName<'_>
fn path(&self) -> ObjectPath<'_>
Provided Methods§
fn object_ref(&self) -> ObjectRef<'_>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".