#[repr(C)]pub struct IUnityProfilerV2 {
pub EmitEvent: Option<unsafe extern "C" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>,
pub IsEnabled: Option<unsafe extern "C" fn() -> c_int>,
pub IsAvailable: Option<unsafe extern "C" fn() -> c_int>,
pub CreateMarker: Option<unsafe extern "C" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>,
pub SetMarkerMetadataName: Option<unsafe extern "C" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>,
pub CreateCategory: Option<unsafe extern "C" fn(category: *mut UnityProfilerCategoryId, name: *const c_char, unused: u32) -> c_int>,
pub RegisterThread: Option<unsafe extern "C" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>,
pub UnregisterThread: Option<unsafe extern "C" fn(threadId: UnityProfilerThreadId) -> c_int>,
pub CreateCounterValue: Option<unsafe extern "C" fn(category: UnityProfilerCategoryId, name: *const c_char, flags: UnityProfilerMarkerFlags, valueType: UnityProfilerMarkerDataType, valueUnit: UnityProfilerMarkerDataUnit, valueSize: usize, counterFlags: UnityProfilerCounterFlags, activateFunc: UnityProfilerCounterStatePtrCallback, deactivateFunc: UnityProfilerCounterStatePtrCallback, userData: *mut c_void) -> *mut c_void>,
pub FlushCounterValue: Option<unsafe extern "C" fn(counter: *mut c_void)>,
}
Fields§
§EmitEvent: Option<unsafe extern "C" fn(markerDesc: *const UnityProfilerMarkerDesc, eventType: UnityProfilerMarkerEventType, eventDataCount: u16, eventData: *const UnityProfilerMarkerData)>
§IsEnabled: Option<unsafe extern "C" fn() -> c_int>
§IsAvailable: Option<unsafe extern "C" fn() -> c_int>
§CreateMarker: Option<unsafe extern "C" fn(desc: *mut *const UnityProfilerMarkerDesc, name: *const c_char, category: UnityProfilerCategoryId, flags: UnityProfilerMarkerFlags, eventDataCount: c_int) -> c_int>
§SetMarkerMetadataName: Option<unsafe extern "C" fn(desc: *const UnityProfilerMarkerDesc, index: c_int, metadataName: *const c_char, metadataType: UnityProfilerMarkerDataType, metadataUnit: UnityProfilerMarkerDataUnit) -> c_int>
§CreateCategory: Option<unsafe extern "C" fn(category: *mut UnityProfilerCategoryId, name: *const c_char, unused: u32) -> c_int>
§RegisterThread: Option<unsafe extern "C" fn(threadId: *mut UnityProfilerThreadId, groupName: *const c_char, name: *const c_char) -> c_int>
§UnregisterThread: Option<unsafe extern "C" fn(threadId: UnityProfilerThreadId) -> c_int>
§CreateCounterValue: Option<unsafe extern "C" fn(category: UnityProfilerCategoryId, name: *const c_char, flags: UnityProfilerMarkerFlags, valueType: UnityProfilerMarkerDataType, valueUnit: UnityProfilerMarkerDataUnit, valueSize: usize, counterFlags: UnityProfilerCounterFlags, activateFunc: UnityProfilerCounterStatePtrCallback, deactivateFunc: UnityProfilerCounterStatePtrCallback, userData: *mut c_void) -> *mut c_void>
§FlushCounterValue: Option<unsafe extern "C" fn(counter: *mut c_void)>
Trait Implementations§
Source§impl Clone for IUnityProfilerV2
impl Clone for IUnityProfilerV2
Source§fn clone(&self) -> IUnityProfilerV2
fn clone(&self) -> IUnityProfilerV2
Returns a duplicate 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 Debug for IUnityProfilerV2
impl Debug for IUnityProfilerV2
Source§impl Default for IUnityProfilerV2
impl Default for IUnityProfilerV2
Source§fn default() -> IUnityProfilerV2
fn default() -> IUnityProfilerV2
Returns the “default value” for a type. Read more
impl Copy for IUnityProfilerV2
Auto Trait Implementations§
impl Freeze for IUnityProfilerV2
impl RefUnwindSafe for IUnityProfilerV2
impl Send for IUnityProfilerV2
impl Sync for IUnityProfilerV2
impl Unpin for IUnityProfilerV2
impl UnwindSafe for IUnityProfilerV2
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