pub struct PawnEventHandler { /* private fields */ }Expand description
Rust object compatible with Open Multiplayer’s PawnEventHandler*.
Created by samp in omp_on_init and registered on the IPawnComponent
dispatcher. The server calls the vtable methods when Pawn scripts are
loaded or unloaded.
Implementations§
Source§impl PawnEventHandler
impl PawnEventHandler
Sourcepub fn new(vtable: *const PawnEventHandlerVTable) -> PawnEventHandler
pub fn new(vtable: *const PawnEventHandlerVTable) -> PawnEventHandler
Creates a new handler with the supplied vtable.
Trait Implementations§
impl Send for PawnEventHandler
impl Sync for PawnEventHandler
Auto Trait Implementations§
impl Freeze for PawnEventHandler
impl RefUnwindSafe for PawnEventHandler
impl Unpin for PawnEventHandler
impl UnsafeUnpin for PawnEventHandler
impl UnwindSafe for PawnEventHandler
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