Struct windows::Win32::System::Diagnostics::ClrProfiling::ICorProfilerCallback2
pub struct ICorProfilerCallback2(/* private fields */);
Implementations§
§impl ICorProfilerCallback2
impl ICorProfilerCallback2
pub unsafe fn ThreadNameChanged( &self, threadid: usize, name: Option<&[u16]>, ) -> Result<()>
pub unsafe fn GarbageCollectionStarted( &self, generationcollected: &[BOOL], reason: COR_PRF_GC_REASON, ) -> Result<()>
pub unsafe fn SurvivingReferences( &self, csurvivingobjectidranges: u32, objectidrangestart: *const usize, cobjectidrangelength: *const u32, ) -> Result<()>
pub unsafe fn GarbageCollectionFinished(&self) -> Result<()>
pub unsafe fn FinalizeableObjectQueued( &self, finalizerflags: u32, objectid: usize, ) -> Result<()>
pub unsafe fn RootReferences2( &self, crootrefs: u32, rootrefids: *const usize, rootkinds: *const COR_PRF_GC_ROOT_KIND, rootflags: *const COR_PRF_GC_ROOT_FLAGS, rootids: *const usize, ) -> Result<()>
pub unsafe fn HandleCreated( &self, handleid: usize, initialobjectid: usize, ) -> Result<()>
pub unsafe fn HandleDestroyed(&self, handleid: usize) -> Result<()>
Methods from Deref<Target = ICorProfilerCallback>§
pub unsafe fn Initialize<P0>(&self, picorprofilerinfounk: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn Shutdown(&self) -> Result<()>
pub unsafe fn AppDomainCreationStarted(&self, appdomainid: usize) -> Result<()>
pub unsafe fn AppDomainCreationFinished( &self, appdomainid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn AppDomainShutdownStarted(&self, appdomainid: usize) -> Result<()>
pub unsafe fn AppDomainShutdownFinished( &self, appdomainid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn AssemblyLoadStarted(&self, assemblyid: usize) -> Result<()>
pub unsafe fn AssemblyLoadFinished( &self, assemblyid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn AssemblyUnloadStarted(&self, assemblyid: usize) -> Result<()>
pub unsafe fn AssemblyUnloadFinished( &self, assemblyid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn ModuleLoadStarted(&self, moduleid: usize) -> Result<()>
pub unsafe fn ModuleLoadFinished( &self, moduleid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn ModuleUnloadStarted(&self, moduleid: usize) -> Result<()>
pub unsafe fn ModuleUnloadFinished( &self, moduleid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn ModuleAttachedToAssembly( &self, moduleid: usize, assemblyid: usize, ) -> Result<()>
pub unsafe fn ClassLoadStarted(&self, classid: usize) -> Result<()>
pub unsafe fn ClassLoadFinished( &self, classid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn ClassUnloadStarted(&self, classid: usize) -> Result<()>
pub unsafe fn ClassUnloadFinished( &self, classid: usize, hrstatus: HRESULT, ) -> Result<()>
pub unsafe fn FunctionUnloadStarted(&self, functionid: usize) -> Result<()>
pub unsafe fn JITCompilationStarted<P0>(
&self,
functionid: usize,
fissafetoblock: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn JITCompilationFinished<P0>(
&self,
functionid: usize,
hrstatus: HRESULT,
fissafetoblock: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn JITCachedFunctionSearchStarted( &self, functionid: usize, ) -> Result<BOOL>
pub unsafe fn JITCachedFunctionSearchFinished( &self, functionid: usize, result: COR_PRF_JIT_CACHE, ) -> Result<()>
pub unsafe fn JITFunctionPitched(&self, functionid: usize) -> Result<()>
pub unsafe fn JITInlining( &self, callerid: usize, calleeid: usize, ) -> Result<BOOL>
pub unsafe fn ThreadCreated(&self, threadid: usize) -> Result<()>
pub unsafe fn ThreadDestroyed(&self, threadid: usize) -> Result<()>
pub unsafe fn ThreadAssignedToOSThread( &self, managedthreadid: usize, osthreadid: u32, ) -> Result<()>
pub unsafe fn RemotingClientInvocationStarted(&self) -> Result<()>
pub unsafe fn RemotingClientSendingMessage<P0>(
&self,
pcookie: *const GUID,
fisasync: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn RemotingClientReceivingReply<P0>(
&self,
pcookie: *const GUID,
fisasync: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn RemotingClientInvocationFinished(&self) -> Result<()>
pub unsafe fn RemotingServerReceivingMessage<P0>(
&self,
pcookie: *const GUID,
fisasync: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn RemotingServerInvocationStarted(&self) -> Result<()>
pub unsafe fn RemotingServerInvocationReturned(&self) -> Result<()>
pub unsafe fn RemotingServerSendingReply<P0>(
&self,
pcookie: *const GUID,
fisasync: P0,
) -> Result<()>where
P0: Param<BOOL>,
pub unsafe fn UnmanagedToManagedTransition( &self, functionid: usize, reason: COR_PRF_TRANSITION_REASON, ) -> Result<()>
pub unsafe fn ManagedToUnmanagedTransition( &self, functionid: usize, reason: COR_PRF_TRANSITION_REASON, ) -> Result<()>
pub unsafe fn RuntimeSuspendStarted( &self, suspendreason: COR_PRF_SUSPEND_REASON, ) -> Result<()>
pub unsafe fn RuntimeSuspendFinished(&self) -> Result<()>
pub unsafe fn RuntimeSuspendAborted(&self) -> Result<()>
pub unsafe fn RuntimeResumeStarted(&self) -> Result<()>
pub unsafe fn RuntimeResumeFinished(&self) -> Result<()>
pub unsafe fn RuntimeThreadSuspended(&self, threadid: usize) -> Result<()>
pub unsafe fn RuntimeThreadResumed(&self, threadid: usize) -> Result<()>
pub unsafe fn MovedReferences( &self, cmovedobjectidranges: u32, oldobjectidrangestart: *const usize, newobjectidrangestart: *const usize, cobjectidrangelength: *const u32, ) -> Result<()>
pub unsafe fn ObjectAllocated( &self, objectid: usize, classid: usize, ) -> Result<()>
pub unsafe fn ObjectsAllocatedByClass( &self, cclasscount: u32, classids: *const usize, cobjects: *const u32, ) -> Result<()>
pub unsafe fn ObjectReferences( &self, objectid: usize, classid: usize, objectrefids: &[usize], ) -> Result<()>
pub unsafe fn RootReferences(&self, rootrefids: &[usize]) -> Result<()>
pub unsafe fn ExceptionThrown(&self, thrownobjectid: usize) -> Result<()>
pub unsafe fn ExceptionSearchFunctionEnter( &self, functionid: usize, ) -> Result<()>
pub unsafe fn ExceptionSearchFunctionLeave(&self) -> Result<()>
pub unsafe fn ExceptionSearchFilterEnter(&self, functionid: usize) -> Result<()>
pub unsafe fn ExceptionSearchFilterLeave(&self) -> Result<()>
pub unsafe fn ExceptionSearchCatcherFound( &self, functionid: usize, ) -> Result<()>
pub unsafe fn ExceptionOSHandlerEnter(&self, __unused: usize) -> Result<()>
pub unsafe fn ExceptionOSHandlerLeave(&self, __unused: usize) -> Result<()>
pub unsafe fn ExceptionUnwindFunctionEnter( &self, functionid: usize, ) -> Result<()>
pub unsafe fn ExceptionUnwindFunctionLeave(&self) -> Result<()>
pub unsafe fn ExceptionUnwindFinallyEnter( &self, functionid: usize, ) -> Result<()>
pub unsafe fn ExceptionUnwindFinallyLeave(&self) -> Result<()>
pub unsafe fn ExceptionCatcherEnter( &self, functionid: usize, objectid: usize, ) -> Result<()>
pub unsafe fn ExceptionCatcherLeave(&self) -> Result<()>
pub unsafe fn COMClassicVTableCreated( &self, wrappedclassid: usize, implementediid: *const GUID, pvtable: *const c_void, cslots: u32, ) -> Result<()>
pub unsafe fn COMClassicVTableDestroyed( &self, wrappedclassid: usize, implementediid: *const GUID, pvtable: *const c_void, ) -> Result<()>
pub unsafe fn ExceptionCLRCatcherFound(&self) -> Result<()>
pub unsafe fn ExceptionCLRCatcherExecute(&self) -> Result<()>
Trait Implementations§
§impl CanInto<ICorProfilerCallback> for ICorProfilerCallback2
impl CanInto<ICorProfilerCallback> for ICorProfilerCallback2
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback10
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback10
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback11
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback11
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback3
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback3
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback4
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback4
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback5
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback5
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback6
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback6
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback7
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback7
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback8
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback8
§impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback9
impl CanInto<ICorProfilerCallback2> for ICorProfilerCallback9
§impl CanInto<IUnknown> for ICorProfilerCallback2
impl CanInto<IUnknown> for ICorProfilerCallback2
§impl Clone for ICorProfilerCallback2
impl Clone for ICorProfilerCallback2
§fn clone(&self) -> ICorProfilerCallback2
fn clone(&self) -> ICorProfilerCallback2
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 more§impl Debug for ICorProfilerCallback2
impl Debug for ICorProfilerCallback2
§impl Deref for ICorProfilerCallback2
impl Deref for ICorProfilerCallback2
§impl From<&ICorProfilerCallback10> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback10> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback10) -> Self
fn from(value: &ICorProfilerCallback10) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback11> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback11> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback11) -> Self
fn from(value: &ICorProfilerCallback11) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback2> for &ICorProfilerCallback
impl From<&ICorProfilerCallback2> for &ICorProfilerCallback
§fn from(value: &ICorProfilerCallback2) -> Self
fn from(value: &ICorProfilerCallback2) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback2> for &IUnknown
impl From<&ICorProfilerCallback2> for &IUnknown
§fn from(value: &ICorProfilerCallback2) -> Self
fn from(value: &ICorProfilerCallback2) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback3> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback3> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback3) -> Self
fn from(value: &ICorProfilerCallback3) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback4> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback4> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback4) -> Self
fn from(value: &ICorProfilerCallback4) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback5> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback5> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback5) -> Self
fn from(value: &ICorProfilerCallback5) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback6> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback6> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback6) -> Self
fn from(value: &ICorProfilerCallback6) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback7> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback7> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback7) -> Self
fn from(value: &ICorProfilerCallback7) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback8> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback8> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback8) -> Self
fn from(value: &ICorProfilerCallback8) -> Self
Converts to this type from the input type.
§impl From<&ICorProfilerCallback9> for &ICorProfilerCallback2
impl From<&ICorProfilerCallback9> for &ICorProfilerCallback2
§fn from(value: &ICorProfilerCallback9) -> Self
fn from(value: &ICorProfilerCallback9) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback10> for ICorProfilerCallback2
impl From<ICorProfilerCallback10> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback10) -> Self
fn from(value: ICorProfilerCallback10) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback11> for ICorProfilerCallback2
impl From<ICorProfilerCallback11> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback11) -> Self
fn from(value: ICorProfilerCallback11) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback2> for ICorProfilerCallback
impl From<ICorProfilerCallback2> for ICorProfilerCallback
§fn from(value: ICorProfilerCallback2) -> Self
fn from(value: ICorProfilerCallback2) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback2> for IUnknown
impl From<ICorProfilerCallback2> for IUnknown
§fn from(value: ICorProfilerCallback2) -> Self
fn from(value: ICorProfilerCallback2) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback3> for ICorProfilerCallback2
impl From<ICorProfilerCallback3> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback3) -> Self
fn from(value: ICorProfilerCallback3) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback4> for ICorProfilerCallback2
impl From<ICorProfilerCallback4> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback4) -> Self
fn from(value: ICorProfilerCallback4) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback5> for ICorProfilerCallback2
impl From<ICorProfilerCallback5> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback5) -> Self
fn from(value: ICorProfilerCallback5) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback6> for ICorProfilerCallback2
impl From<ICorProfilerCallback6> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback6) -> Self
fn from(value: ICorProfilerCallback6) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback7> for ICorProfilerCallback2
impl From<ICorProfilerCallback7> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback7) -> Self
fn from(value: ICorProfilerCallback7) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback8> for ICorProfilerCallback2
impl From<ICorProfilerCallback8> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback8) -> Self
fn from(value: ICorProfilerCallback8) -> Self
Converts to this type from the input type.
§impl From<ICorProfilerCallback9> for ICorProfilerCallback2
impl From<ICorProfilerCallback9> for ICorProfilerCallback2
§fn from(value: ICorProfilerCallback9) -> Self
fn from(value: ICorProfilerCallback9) -> Self
Converts to this type from the input type.
§impl Interface for ICorProfilerCallback2
impl Interface for ICorProfilerCallback2
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for ICorProfilerCallback2
impl PartialEq for ICorProfilerCallback2
§fn eq(&self, other: &ICorProfilerCallback2) -> bool
fn eq(&self, other: &ICorProfilerCallback2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ICorProfilerCallback2
impl StructuralPartialEq for ICorProfilerCallback2
Auto Trait Implementations§
impl Freeze for ICorProfilerCallback2
impl RefUnwindSafe for ICorProfilerCallback2
impl !Send for ICorProfilerCallback2
impl !Sync for ICorProfilerCallback2
impl Unpin for ICorProfilerCallback2
impl UnwindSafe for ICorProfilerCallback2
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
)