[−][src]Struct mun_runtime::Assembly
An assembly is a hot reloadable compilation unit, consisting of one or more Mun modules.
Implementations
impl Assembly
[src]
pub fn load(
library_path: &Path,
gc: Arc<MarkSweep<UnsafeTypeInfo, NoopObserver<Event>>>,
runtime_dispatch_table: &DispatchTable
) -> Result<Self, Error>
[src]
library_path: &Path,
gc: Arc<MarkSweep<UnsafeTypeInfo, NoopObserver<Event>>>,
runtime_dispatch_table: &DispatchTable
) -> Result<Self, Error>
Loads an assembly and its information for the shared library at library_path
. The
resulting Assembly
is ensured to be linkable.
pub fn link(&mut self, runtime_dispatch_table: &mut DispatchTable)
[src]
Links the assembly using the runtime's dispatch table.
Requires that ensure_linkable
has been called beforehand. This happens upon creation of
an Assembly
- in the load
function - making this function safe.
pub fn swap(
&mut self,
library_path: &Path,
runtime_dispatch_table: &mut DispatchTable
) -> Result<(), Error>
[src]
&mut self,
library_path: &Path,
runtime_dispatch_table: &mut DispatchTable
) -> Result<(), Error>
Swaps the assembly's shared library and its information for the library at library_path
.
pub fn info(&self) -> &AssemblyInfo
[src]
Returns the assembly's information.
pub fn library_path(&self) -> &Path
[src]
Returns the path corresponding to the assembly's library.
pub fn into_library(self) -> TempLibrary
[src]
Converts the Assembly
into a TempLibrary
, consuming the input in the process.
Auto Trait Implementations
impl !RefUnwindSafe for Assembly
impl Send for Assembly
impl Sync for Assembly
impl Unpin for Assembly
impl !UnwindSafe for Assembly
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,