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