Struct unity_native_plugin_sys::IUnityProfiler
source · #[repr(C)]pub struct IUnityProfiler {
pub EmitEvent: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>,
pub IsEnabled: Option<unsafe extern "system" fn() -> c_int>,
pub IsAvailable: Option<unsafe extern "system" fn() -> c_int>,
pub CreateMarker: Option<unsafe extern "system" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>,
pub SetMarkerMetadataName: Option<unsafe extern "system" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>,
pub RegisterThread: Option<unsafe extern "system" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>,
pub UnregisterThread: Option<unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> c_int>,
}
Fields§
§EmitEvent: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>
§IsEnabled: Option<unsafe extern "system" fn() -> c_int>
§IsAvailable: Option<unsafe extern "system" fn() -> c_int>
§CreateMarker: Option<unsafe extern "system" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>
§SetMarkerMetadataName: Option<unsafe extern "system" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>
§RegisterThread: Option<unsafe extern "system" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>
§UnregisterThread: Option<unsafe extern "system" fn(threadId: UnityProfilerThreadId) -> c_int>
Trait Implementations§
source§impl Clone for IUnityProfiler
impl Clone for IUnityProfiler
source§fn clone(&self) -> IUnityProfiler
fn clone(&self) -> IUnityProfiler
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 moresource§impl Default for IUnityProfiler
impl Default for IUnityProfiler
source§fn default() -> IUnityProfiler
fn default() -> IUnityProfiler
Returns the “default value” for a type. Read more
impl Copy for IUnityProfiler
Auto Trait Implementations§
impl Freeze for IUnityProfiler
impl RefUnwindSafe for IUnityProfiler
impl Send for IUnityProfiler
impl Sync for IUnityProfiler
impl Unpin for IUnityProfiler
impl UnwindSafe for IUnityProfiler
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)