Struct netcorehost::hostfxr::HostfxrHandle
source · pub struct HostfxrHandle(/* private fields */);
Available on crate feature
netcore3_0
only.Expand description
Handle of a loaded HostfxrContext
.
Implementations§
source§impl HostfxrHandle
impl HostfxrHandle
sourcepub const unsafe fn new_unchecked(ptr: hostfxr_handle) -> Self
pub const unsafe fn new_unchecked(ptr: hostfxr_handle) -> Self
Creates a new hostfxr handle from the given raw handle.
§Safety
- The given raw handle has to be non-null.
- The given handle has to be valid and has to represent a hostfxr context.
sourcepub const fn as_raw(&self) -> hostfxr_handle
pub const fn as_raw(&self) -> hostfxr_handle
Returns the raw underlying handle.
Trait Implementations§
source§impl Clone for HostfxrHandle
impl Clone for HostfxrHandle
source§fn clone(&self) -> HostfxrHandle
fn clone(&self) -> HostfxrHandle
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 moresource§impl Debug for HostfxrHandle
impl Debug for HostfxrHandle
source§impl From<HostfxrHandle> for hostfxr_handle
impl From<HostfxrHandle> for hostfxr_handle
source§fn from(handle: HostfxrHandle) -> Self
fn from(handle: HostfxrHandle) -> Self
Converts to this type from the input type.
source§impl Hash for HostfxrHandle
impl Hash for HostfxrHandle
source§impl PartialEq for HostfxrHandle
impl PartialEq for HostfxrHandle
source§fn eq(&self, other: &HostfxrHandle) -> bool
fn eq(&self, other: &HostfxrHandle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HostfxrHandle
impl Eq for HostfxrHandle
impl StructuralPartialEq for HostfxrHandle
Auto Trait Implementations§
impl RefUnwindSafe for HostfxrHandle
impl !Send for HostfxrHandle
impl !Sync for HostfxrHandle
impl Unpin for HostfxrHandle
impl UnwindSafe for HostfxrHandle
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