pub struct DotNetLibraryBundle { /* private fields */ }
Expand description
A location on the file system and an associated .NET DLL bundle to host a .NET runtime for.
Uses the DOTNET_RAWFILEREADER_BUNDLE_PATH
environment variable when a default
is required, otherwise creates a temporary directory whose lifespan is linked to this
object.
Implementations§
source§impl DotNetLibraryBundle
impl DotNetLibraryBundle
sourcepub fn new(dir: Option<&str>) -> Result<Self>
pub fn new(dir: Option<&str>) -> Result<Self>
Create a new bundle directory. If a path string is provided, that path will be used. Otherwise a temporary directory will be created.
sourcepub fn runtime(&self) -> Arc<AssemblyDelegateLoader>
pub fn runtime(&self) -> Arc<AssemblyDelegateLoader>
Get a reference to the .NET runtime, creating it if one has not yet been created.
See DotNetLibraryBundle::create_runtime
for specific runtime creation
sourcepub fn write_bundle(&self) -> Result<()>
pub fn write_bundle(&self) -> Result<()>
Write all of the bundled .NET DLLs to the file system at this location
sourcepub fn create_runtime(&self) -> Arc<AssemblyDelegateLoader>
pub fn create_runtime(&self) -> Arc<AssemblyDelegateLoader>
Create a new .NET runtime using netcorehost
Trait Implementations§
source§impl Debug for DotNetLibraryBundle
impl Debug for DotNetLibraryBundle
Auto Trait Implementations§
impl !Freeze for DotNetLibraryBundle
impl RefUnwindSafe for DotNetLibraryBundle
impl Send for DotNetLibraryBundle
impl Sync for DotNetLibraryBundle
impl Unpin for DotNetLibraryBundle
impl UnwindSafe for DotNetLibraryBundle
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