IWeakEventSubscriber
trait · ferroui-base · v0.5.0
trait IWeakEventSubscriber<A: WeakEventArgs + ?Sized>
Defines a listener to a event subscribed vis the WeakEvent.
sender is the object that raised the event, ev the weak event it was
raised through (compare it by address with the event, for example
std::ptr::addr_eq(ev, &*WeakEvents::collection_changed())).
Members
on_event
fn on_event(self: &Self, sender: Option<&dyn Any>, ev: &dyn Any, e: &<A as >::Args<'_>)
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.