pub unsafe fn event_subscribe_typed<T>(
identifier: impl AsRef<str>,
callback: RawEventConsume<T>,
) -> Revertible<impl Fn() + Send + Sync + Clone + 'static>Expand description
Subscribes to an event with a raw callback using a typed payload.
Returns a Revertible to revert the subscribe.
ยงSafety
The passed event identifier must always come with valid data of the given type.