pub struct LoadedPlugin<T> { /* private fields */ }Expand description
一个已加载的插件。
持有 Library 句柄 —— drop 掉这个结构体会把插件卸载。
所以只要还想用它导出的东西,就得让它活着。
Implementations§
Auto Trait Implementations§
impl<T> !Send for LoadedPlugin<T>
impl<T> !Sync for LoadedPlugin<T>
impl<T> Freeze for LoadedPlugin<T>
impl<T> RefUnwindSafe for LoadedPlugin<T>where
*const T: RefUnwindSafe,
impl<T> Unpin for LoadedPlugin<T>
impl<T> UnsafeUnpin for LoadedPlugin<T>where
*const T: UnsafeUnpin,
impl<T> UnwindSafe for LoadedPlugin<T>where
*const T: UnwindSafe,
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