Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin: 'static {
    // Required method
    fn build(&self, app: &mut App);
}

Required Methods§

Source

fn build(&self, app: &mut App)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<B: AsyncInit, W> Plugin for AsyncGraphicsPlugin<B, W>

Source§

impl<B: Backend, W: PresentableWindow> Plugin for GraphicsPlugin<B, W>

Source§

impl<B: Backend> Plugin for RenderPlugin<B>

Source§

impl<D, T> Plugin for DeviceAssetPlugin<D, T>
where D: 'static + Send + Sync, T: DeviceUpload<D>,

Source§

impl<W> Plugin for WindowPlugin<W>
where W: WindowRunner, W::Handle: 'static + Send + Sync + Clone,