#[repr(C)]pub struct NativeModularVTable {
pub create: unsafe extern "system" fn(threads: u32) -> Obj,
pub destroy_instance: unsafe extern "system" fn(modular: Obj),
pub subscribe: unsafe extern "system" fn(modular: Obj, subscribe: CSubscribe, _: *mut CSubscriptionRef) -> i32,
pub publish: unsafe extern "system" fn(modular: Obj, topic: *const c_char, data: CBuf),
pub register_module: unsafe extern "system" fn(modular: Obj, name: *const c_char, module: CModule, replace: bool) -> i32,
pub remove_module: unsafe extern "system" fn(modular: Obj, name: *const c_char),
pub get_module_ref: unsafe extern "system" fn(modular: Obj, name: *const c_char) -> CModuleRef,
}
Fields§
§create: unsafe extern "system" fn(threads: u32) -> Obj
§destroy_instance: unsafe extern "system" fn(modular: Obj)
§subscribe: unsafe extern "system" fn(modular: Obj, subscribe: CSubscribe, _: *mut CSubscriptionRef) -> i32
§publish: unsafe extern "system" fn(modular: Obj, topic: *const c_char, data: CBuf)
§register_module: unsafe extern "system" fn(modular: Obj, name: *const c_char, module: CModule, replace: bool) -> i32
§remove_module: unsafe extern "system" fn(modular: Obj, name: *const c_char)
§get_module_ref: unsafe extern "system" fn(modular: Obj, name: *const c_char) -> CModuleRef
Trait Implementations§
Source§impl Clone for NativeModularVTable
impl Clone for NativeModularVTable
Source§fn clone(&self) -> NativeModularVTable
fn clone(&self) -> NativeModularVTable
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for NativeModularVTable
Auto Trait Implementations§
impl Freeze for NativeModularVTable
impl RefUnwindSafe for NativeModularVTable
impl Send for NativeModularVTable
impl Sync for NativeModularVTable
impl Unpin for NativeModularVTable
impl UnwindSafe for NativeModularVTable
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