#[repr(C)]pub struct ModuleVTable {
pub new: unsafe extern "C" fn() -> *mut c_void,
pub drop: unsafe extern "C" fn(state: *mut c_void),
pub update: unsafe extern "C" fn(state: *mut c_void, message: FfiMessage) -> *mut c_void,
pub view: unsafe extern "C" fn(state: *mut c_void) -> *mut c_void,
pub subscription: unsafe extern "C" fn(state: *mut c_void) -> *mut c_void,
}Expand description
Virtual table every plugin must expose
Fields§
§new: unsafe extern "C" fn() -> *mut c_void§drop: unsafe extern "C" fn(state: *mut c_void)§update: unsafe extern "C" fn(state: *mut c_void, message: FfiMessage) -> *mut c_void§view: unsafe extern "C" fn(state: *mut c_void) -> *mut c_void§subscription: unsafe extern "C" fn(state: *mut c_void) -> *mut c_voidAuto Trait Implementations§
impl Freeze for ModuleVTable
impl RefUnwindSafe for ModuleVTable
impl Send for ModuleVTable
impl Sync for ModuleVTable
impl Unpin for ModuleVTable
impl UnwindSafe for ModuleVTable
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