#[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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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