pub trait RealtimeComponentApplyEvent<C>: RealtimeComponent {
// Required method
fn apply_event(
event: <Self as RealtimeComponent>::Event,
entity: Entity,
context: &mut C,
);
}Required Methods§
Sourcefn apply_event(
event: <Self as RealtimeComponent>::Event,
entity: Entity,
context: &mut C,
)
fn apply_event( event: <Self as RealtimeComponent>::Event, entity: Entity, context: &mut C, )
Apply an event to a context. This is separated from tick so that the context
can include the container of this RealtimeComponent.
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.