pub struct EventInfo {
pub name: &'static str,
pub handler: EventHandler,
}Expand description
Pawn callback name paired with its handler wrapper.
Produced by the __samp_event_reg_* function that #[event] generates and
consumed by initialize_plugin!(events: [...]).
Fields§
§name: &'static strPawn callback name, e.g. "OnPlayerConnect".
handler: EventHandlerWrapper that parses arguments and dispatches into the plugin method.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventInfo
impl RefUnwindSafe for EventInfo
impl Send for EventInfo
impl Sync for EventInfo
impl Unpin for EventInfo
impl UnsafeUnpin for EventInfo
impl UnwindSafe for EventInfo
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