pub struct ConsoleHandler { /* private fields */ }Expand description
Object the server calls through ConsoleHandlerVTable: 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 ConsoleHandler
impl ConsoleHandler
Sourcepub const fn new(vtable: *const ConsoleHandlerVTable) -> ConsoleHandler
pub const fn new(vtable: *const ConsoleHandlerVTable) -> ConsoleHandler
Builds a handler backed by vtable.
Trait Implementations§
impl Send for ConsoleHandler
impl Sync for ConsoleHandler
Auto Trait Implementations§
impl Freeze for ConsoleHandler
impl RefUnwindSafe for ConsoleHandler
impl Unpin for ConsoleHandler
impl UnsafeUnpin for ConsoleHandler
impl UnwindSafe for ConsoleHandler
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