#[repr(C)]pub struct ConsoleHandlerVTable {
pub on_console_text: unsafe extern "thiscall" fn(*mut ConsoleHandler, StringView, StringView, *const ConsoleCommandSenderData) -> bool,
pub on_rcon_login_attempt: unsafe extern "thiscall" fn(*mut ConsoleHandler, *mut IPlayer, StringView, u32),
pub on_console_command_list_request: unsafe extern "thiscall" fn(*mut ConsoleHandler, *mut c_void),
}Expand description
ConsoleEventHandler in Server/Components/Console/console.hpp.
Fields§
§on_console_text: unsafe extern "thiscall" fn(*mut ConsoleHandler, StringView, StringView, *const ConsoleCommandSenderData) -> boolbool onConsoleText(StringView, StringView, const ConsoleCommandSenderData &).
on_rcon_login_attempt: unsafe extern "thiscall" fn(*mut ConsoleHandler, *mut IPlayer, StringView, u32)void onRconLoginAttempt(IPlayer &, StringView, bool).
on_console_command_list_request: unsafe extern "thiscall" fn(*mut ConsoleHandler, *mut c_void)void onConsoleCommandListRequest(FlatHashSet<StringView> &).
Implementations§
Source§impl ConsoleHandlerVTable
impl ConsoleHandlerVTable
Sourcepub const DEFAULT: ConsoleHandlerVTable
pub const DEFAULT: ConsoleHandlerVTable
Every entry doing what the C++ handler’s own body does.
Trait Implementations§
Source§impl Clone for ConsoleHandlerVTable
impl Clone for ConsoleHandlerVTable
Source§fn clone(&self) -> ConsoleHandlerVTable
fn clone(&self) -> ConsoleHandlerVTable
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConsoleHandlerVTable
Auto Trait Implementations§
impl Freeze for ConsoleHandlerVTable
impl RefUnwindSafe for ConsoleHandlerVTable
impl Send for ConsoleHandlerVTable
impl Sync for ConsoleHandlerVTable
impl Unpin for ConsoleHandlerVTable
impl UnsafeUnpin for ConsoleHandlerVTable
impl UnwindSafe for ConsoleHandlerVTable
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