pub struct PlayerConnectHandler { /* private fields */ }Expand description
Object the server calls on player connection events.
Layout: vtable pointer at offset 0, like every C++ object with virtuals. The server keeps the pointer, so it must outlive the registration — leak it, or keep it alive for the plugin’s lifetime and remove it before dropping.
Implementations§
Source§impl PlayerConnectHandler
impl PlayerConnectHandler
Sourcepub fn new(vtable: *const PlayerConnectHandlerVTable) -> PlayerConnectHandler
pub fn new(vtable: *const PlayerConnectHandlerVTable) -> PlayerConnectHandler
Builds a handler backed by vtable.
Trait Implementations§
impl Send for PlayerConnectHandler
impl Sync for PlayerConnectHandler
Auto Trait Implementations§
impl Freeze for PlayerConnectHandler
impl RefUnwindSafe for PlayerConnectHandler
impl Unpin for PlayerConnectHandler
impl UnsafeUnpin for PlayerConnectHandler
impl UnwindSafe for PlayerConnectHandler
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