pub struct SupportModuleHandle { /* private fields */ }Expand description
Opaque, single-use handle to a loaded support module.
Returned by ComponentRuntime::load_support_module and consumed by
ComponentRuntime::unload_support_module; because it is neither Clone
nor Copy, a double unload is unrepresentable.
Implementations§
Source§impl SupportModuleHandle
impl SupportModuleHandle
Sourcepub fn swap_ref(&self) -> SupportModuleRef
pub fn swap_ref(&self) -> SupportModuleRef
A swap reference to the same module NAME: what the F-7b dev reload swaps against. Deliberately separate from the handle itself — a ref cannot unload, so the double-unload law the handle encodes stays unrepresentable while swaps stay cheap to thread around.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SupportModuleHandle
impl RefUnwindSafe for SupportModuleHandle
impl Send for SupportModuleHandle
impl Sync for SupportModuleHandle
impl Unpin for SupportModuleHandle
impl UnsafeUnpin for SupportModuleHandle
impl UnwindSafe for SupportModuleHandle
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