Struct nethost_sys::get_hostfxr_parameters
source · [−]#[repr(C)]pub struct get_hostfxr_parameters {
pub size: size_t,
pub assembly_path: *const char_t,
pub dotnet_root: *const char_t,
}Expand description
Parameters for get_hostfxr_path.
Fields
size: size_tSize of the struct. This is used for versioning.
assembly_path: *const char_tPath to the compenent’s assembly.
If specified, hostfxr is located as if the assembly_path is the apphost
dotnet_root: *const char_tPath to directory containing the dotnet executable.
If specified, hostfxr is located as if an application is started using
dotnet app.dll, which means it will be searched for under the dotnet_root
path and the assembly_path is ignored.
Implementations
sourceimpl get_hostfxr_parameters
impl get_hostfxr_parameters
sourcepub fn with_dotnet_root(dotnet_root: *const char_t) -> Self
pub fn with_dotnet_root(dotnet_root: *const char_t) -> Self
Creates a new instance of get_hostfxr_parameters with the given dotnet_root.
The size field is set accordingly to the size of the struct and assembly_path to ptr::null().
sourcepub fn with_assembly_path(assembly_path: *const char_t) -> Self
pub fn with_assembly_path(assembly_path: *const char_t) -> Self
Creates a new instance of get_hostfxr_parameters with the given assembly_path.
The size field is set accordingly to the size of the struct and dotnet_root to ptr::null().
Auto Trait Implementations
impl RefUnwindSafe for get_hostfxr_parameters
impl !Send for get_hostfxr_parameters
impl !Sync for get_hostfxr_parameters
impl Unpin for get_hostfxr_parameters
impl UnwindSafe for get_hostfxr_parameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more