pub struct NPCHandler { /* private fields */ }Expand description
Object the server calls through NPCHandlerVTable: the vtable pointer at offset 0, like any C++ object with virtuals.
The server keeps the pointer, so it must outlive the registration.
Implementations§
Source§impl NPCHandler
impl NPCHandler
Sourcepub const fn new(vtable: *const NPCHandlerVTable) -> NPCHandler
pub const fn new(vtable: *const NPCHandlerVTable) -> NPCHandler
Builds a handler backed by vtable.
Trait Implementations§
impl Send for NPCHandler
impl Sync for NPCHandler
Auto Trait Implementations§
impl Freeze for NPCHandler
impl RefUnwindSafe for NPCHandler
impl Unpin for NPCHandler
impl UnsafeUnpin for NPCHandler
impl UnwindSafe for NPCHandler
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