pub struct OmpComponent {
pub uid: u64,
pub plugin_ptr: *mut (),
/* private fields */
}Fields§
§uid: u64Unique UID for this component.
plugin_ptr: *mut ()Pointer to the Rust plugin (SampPlugin).
Implementations§
Source§impl OmpComponent
impl OmpComponent
Sourcepub fn new(
vtable: *const IComponentVTable,
uid_vtable: *const IUIDProviderVTable,
uid: u64,
) -> OmpComponent
pub fn new( vtable: *const IComponentVTable, uid_vtable: *const IUIDProviderVTable, uid: u64, ) -> OmpComponent
Creates a new OmpComponent with a layout compatible with the platform ABI.
Trait Implementations§
impl Send for OmpComponent
impl Sync for OmpComponent
Auto Trait Implementations§
impl Freeze for OmpComponent
impl RefUnwindSafe for OmpComponent
impl Unpin for OmpComponent
impl UnsafeUnpin for OmpComponent
impl UnwindSafe for OmpComponent
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