#[repr(C)]pub struct CModule {
pub ptr: Obj,
pub on_invoke: unsafe extern "system" fn(ptr: Obj, method: *const c_char, data: CBuf, callback: CCallback),
pub on_drop: unsafe extern "system" fn(ptr: Obj),
}
Fields§
§ptr: Obj
§on_invoke: unsafe extern "system" fn(ptr: Obj, method: *const c_char, data: CBuf, callback: CCallback)
§on_drop: unsafe extern "system" fn(ptr: Obj)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CModule
impl RefUnwindSafe for CModule
impl Unpin for CModule
impl UnwindSafe for CModule
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