Trait zng_app::event::AnyEventArgs
source · pub trait AnyEventArgs:
Debug
+ Send
+ Sync
+ Any {
// Required methods
fn clone_any(&self) -> Box<dyn AnyEventArgs>;
fn as_any(&self) -> &dyn Any;
fn timestamp(&self) -> DInstant;
fn delivery_list(&self, list: &mut UpdateDeliveryList);
fn propagation(&self) -> &EventPropagationHandle;
}
Expand description
Methods of EventArgs
that are object safe.
Required Methods§
sourcefn clone_any(&self) -> Box<dyn AnyEventArgs>
fn clone_any(&self) -> Box<dyn AnyEventArgs>
Clone the event into a type erased box.
sourcefn delivery_list(&self, list: &mut UpdateDeliveryList)
fn delivery_list(&self, list: &mut UpdateDeliveryList)
Insert all targets of this event on the UpdateDeliveryList
.
sourcefn propagation(&self) -> &EventPropagationHandle
fn propagation(&self) -> &EventPropagationHandle
Propagation handle associated with this event instance.
Cloned arguments share the same handle, some arguments may also share the handle of another event if they share the same cause.