#[repr(C)]pub struct EventApi {
pub raise: RawEventRaise,
pub raise_notification: RawEventRaiseNotification,
pub raise_targeted: RawEventRaiseTargeted,
pub raise_notification_targeted: RawEventRaiseNotificationTargeted,
pub subscribe: RawEventSubscribe,
pub unsubscribe: RawEventSubscribe,
}Fields§
§raise: RawEventRaiseRaises an event to all subscribing addons.
raise_notification: RawEventRaiseNotificationRaises an event without payload to all subscribing addons.
Alias for event_raise("EV_FOO", null).
raise_targeted: RawEventRaiseTargetedRaises an event for a specific subscribing addon.
raise_notification_targeted: RawEventRaiseNotificationTargetedRaises an event without payload for a specific subscribing addon.
Alias for event_raise_targeted("EV_FOO", null).
subscribe: RawEventSubscribeRegisters a new event callback.
unsubscribe: RawEventSubscribeRemoves a registered event callback.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventApi
impl RefUnwindSafe for EventApi
impl Send for EventApi
impl Sync for EventApi
impl Unpin for EventApi
impl UnwindSafe for EventApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more