pub struct PluginHandle<P: PluginStateKey> { /* private fields */ }Expand description
Zero-sized proof token returned when a plugin state is registered.
Holding a PluginHandle<P> proves that the plugin P has been registered
in the associated PluginStateMap.
Trait Implementations§
Source§impl<P: PluginStateKey> Clone for PluginHandle<P>
impl<P: PluginStateKey> Clone for PluginHandle<P>
Source§impl<P: PluginStateKey> Debug for PluginHandle<P>
impl<P: PluginStateKey> Debug for PluginHandle<P>
impl<P: PluginStateKey> Copy for PluginHandle<P>
Auto Trait Implementations§
impl<P> Freeze for PluginHandle<P>
impl<P> RefUnwindSafe for PluginHandle<P>where
P: RefUnwindSafe,
impl<P> Send for PluginHandle<P>
impl<P> Sync for PluginHandle<P>
impl<P> Unpin for PluginHandle<P>where
P: Unpin,
impl<P> UnsafeUnpin for PluginHandle<P>
impl<P> UnwindSafe for PluginHandle<P>where
P: 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