pub struct ComponentInstance<T: AlefContract> { /* private fields */ }Expand description
A live instance created by a component, paired with its typed C function table.
Dropping the instance invokes the component’s own destructor while the originating dynamic library remains pinned.
Implementations§
Trait Implementations§
Source§impl<T: AlefContract> Drop for ComponentInstance<T>
impl<T: AlefContract> Drop for ComponentInstance<T>
impl<T: AlefContract> Send for ComponentInstance<T>
impl<T: AlefContract> Sync for ComponentInstance<T>
Auto Trait Implementations§
impl<T> Freeze for ComponentInstance<T>where
PhantomData<T>: Freeze,
impl<T> RefUnwindSafe for ComponentInstance<T>where
PhantomData<T>: RefUnwindSafe,
impl<T> Unpin for ComponentInstance<T>where
PhantomData<T>: Unpin,
impl<T> UnsafeUnpin for ComponentInstance<T>where
PhantomData<T>: UnsafeUnpin,
impl<T> UnwindSafe for ComponentInstance<T>where
PhantomData<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