pub struct TypedPluginHandle<P: Plugin> {
handle: Arc<Mutex<PluginHandle>>,
_type: PhantomData<P>,
}Fields§
§handle: Arc<Mutex<PluginHandle>>§_type: PhantomData<P>Implementations§
Source§impl<P: Plugin> TypedPluginHandle<P>
impl<P: Plugin> TypedPluginHandle<P>
pub(crate) fn new(handle: Arc<Mutex<PluginHandle>>) -> Self
pub fn lock(&self) -> TypedPluginGuard<'_, P>
Auto Trait Implementations§
impl<P> Freeze for TypedPluginHandle<P>
impl<P> !RefUnwindSafe for TypedPluginHandle<P>
impl<P> Send for TypedPluginHandle<P>
impl<P> Sync for TypedPluginHandle<P>
impl<P> Unpin for TypedPluginHandle<P>where
P: Unpin,
impl<P> !UnwindSafe for TypedPluginHandle<P>
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