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