Struct fui_core::EventSubscription
source · pub struct EventSubscription { /* private fields */ }
Expand description
EventSubscription is an owner of the callback (handler). Event keeps only a weak reference to the callback (handler).
Calling the callback stops when EventSubscription is dropped.
EventSubscription can keep more than one callback internally. It is useful when implementing aggregation of events.