#[repr(C)]pub struct IUnityProfilerCallbacks {
pub RegisterCreateCategoryCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateCategoryCallback, userData: *mut c_void) -> c_int>,
pub UnregisterCreateCategoryCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateCategoryCallback, userData: *mut c_void) -> c_int>,
pub RegisterCreateMarkerCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateMarkerCallback, userData: *mut c_void) -> c_int>,
pub UnregisterCreateMarkerCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateMarkerCallback, userData: *mut c_void) -> c_int>,
pub RegisterMarkerEventCallback: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, callback: IUnityProfilerMarkerEventCallback, userData: *mut c_void) -> c_int>,
pub UnregisterMarkerEventCallback: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, callback: IUnityProfilerMarkerEventCallback, userData: *mut c_void) -> c_int>,
pub RegisterFrameCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerFrameCallback, userData: *mut c_void) -> c_int>,
pub UnregisterFrameCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerFrameCallback, userData: *mut c_void) -> c_int>,
pub RegisterCreateThreadCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerThreadCallback, userData: *mut c_void) -> c_int>,
pub UnregisterCreateThreadCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerThreadCallback, userData: *mut c_void) -> c_int>,
}
Fields§
§RegisterCreateCategoryCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateCategoryCallback, userData: *mut c_void) -> c_int>
§UnregisterCreateCategoryCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateCategoryCallback, userData: *mut c_void) -> c_int>
§RegisterCreateMarkerCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateMarkerCallback, userData: *mut c_void) -> c_int>
§UnregisterCreateMarkerCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerCreateMarkerCallback, userData: *mut c_void) -> c_int>
§RegisterMarkerEventCallback: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, callback: IUnityProfilerMarkerEventCallback, userData: *mut c_void) -> c_int>
§UnregisterMarkerEventCallback: Option<unsafe extern "system" fn(markerDesc: *const UnityProfilerMarkerDesc, callback: IUnityProfilerMarkerEventCallback, userData: *mut c_void) -> c_int>
§RegisterFrameCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerFrameCallback, userData: *mut c_void) -> c_int>
§UnregisterFrameCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerFrameCallback, userData: *mut c_void) -> c_int>
§RegisterCreateThreadCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerThreadCallback, userData: *mut c_void) -> c_int>
§UnregisterCreateThreadCallback: Option<unsafe extern "system" fn(callback: IUnityProfilerThreadCallback, userData: *mut c_void) -> c_int>
Trait Implementations§
Source§impl Clone for IUnityProfilerCallbacks
impl Clone for IUnityProfilerCallbacks
Source§fn clone(&self) -> IUnityProfilerCallbacks
fn clone(&self) -> IUnityProfilerCallbacks
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 IUnityProfilerCallbacks
impl Default for IUnityProfilerCallbacks
Source§fn default() -> IUnityProfilerCallbacks
fn default() -> IUnityProfilerCallbacks
Returns the “default value” for a type. Read more
impl Copy for IUnityProfilerCallbacks
Auto Trait Implementations§
impl Freeze for IUnityProfilerCallbacks
impl RefUnwindSafe for IUnityProfilerCallbacks
impl Send for IUnityProfilerCallbacks
impl Sync for IUnityProfilerCallbacks
impl Unpin for IUnityProfilerCallbacks
impl UnwindSafe for IUnityProfilerCallbacks
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