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