pub struct ClrHost {
pub handle: *mut c_void,
pub domain: u32,
/* private fields */
}Available on x86-64 and crate feature
coreclr only.Expand description
A handle to the game’s running CoreCLR, captured from coreclr_initialize.
Fields§
§handle: *mut c_voidThe host handle coreclr_initialize returned, which
coreclr_create_delegate needs.
domain: u32The id of the app domain the game’s host created.
Implementations§
Source§impl ClrHost
impl ClrHost
Sourcepub fn create_delegate(
&self,
assembly: &str,
type_name: &str,
method: &str,
) -> Result<*mut c_void, String>
pub fn create_delegate( &self, assembly: &str, type_name: &str, method: &str, ) -> Result<*mut c_void, String>
A native-callable pointer to a static [UnmanagedCallersOnly] method
type_name::method in assembly (CoreCLR only exposes such methods
directly; arbitrary methods need a managed loader on top of this).
Trait Implementations§
impl Copy for ClrHost
impl Send for ClrHost
impl Sync for ClrHost
Auto Trait Implementations§
impl Forget for ClrHost
impl Freeze for ClrHost
impl Move for ClrHost
impl RefUnwindSafe for ClrHost
impl Unpin for ClrHost
impl UnsafeUnpin for ClrHost
impl UnwindSafe for ClrHost
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