pub struct PluginRegistrar { /* private fields */ }Expand description
The shell-owned registration context passed to every plugin.
Capabilities are added here as the shell implements them. Keeping this type opaque prevents plugins from depending on private engine handles.
Implementations§
Source§impl PluginRegistrar
impl PluginRegistrar
Sourcepub fn main_thread_dispatcher(&self) -> &MainThreadDispatcher
pub fn main_thread_dispatcher(&self) -> &MainThreadDispatcher
Returns the dispatcher for main-thread-only platform operations.
Sourcepub fn gpu(&self) -> Result<&GpuTextures>
pub fn gpu(&self) -> Result<&GpuTextures>
Returns the engine-owned wgpu texture capability.
Auto Trait Implementations§
impl !RefUnwindSafe for PluginRegistrar
impl !UnwindSafe for PluginRegistrar
impl Freeze for PluginRegistrar
impl Send for PluginRegistrar
impl Sync for PluginRegistrar
impl Unpin for PluginRegistrar
impl UnsafeUnpin for PluginRegistrar
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