pub trait EventTarget {
// Required method
fn register(
&self,
registration: &mut impl EventDispatcher,
events: EnumSet<DomainEvent>,
local_id: LocalId,
);
}Expand description
Anything that can subscribe to domain events.
Typically these are variables.
Required Methods§
Sourcefn register(
&self,
registration: &mut impl EventDispatcher,
events: EnumSet<DomainEvent>,
local_id: LocalId,
)
fn register( &self, registration: &mut impl EventDispatcher, events: EnumSet<DomainEvent>, local_id: LocalId, )
Indicate that self should be registered for the given domain events as the given local ID.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".