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, T, Dep1, Dep2, Dep3, Dep4> Plugin for DependentAssetPlugin4<B, T, Dep1, Dep2, Dep3, Dep4>
where B: 'static + Send + Sync, Dep1: 'static + Send + Sync, Dep2: 'static + Send + Sync, Dep3: 'static + Send + Sync, Dep4: 'static + Send + Sync, T: DependentUpload4<B, Dep1, Dep2, Dep3, Dep4>,

Source§

impl<B, T, Dep1, Dep2, Dep3> Plugin for DependentAssetPlugin3<B, T, Dep1, Dep2, Dep3>
where B: 'static + Send + Sync, Dep1: 'static + Send + Sync, Dep2: 'static + Send + Sync, Dep3: 'static + Send + Sync, T: DependentUpload3<B, Dep1, Dep2, Dep3>,

Source§

impl<B, T, Dep1, Dep2> Plugin for DependentAssetPlugin2<B, T, Dep1, Dep2>
where B: 'static + Send + Sync, Dep1: 'static + Send + Sync, Dep2: 'static + Send + Sync, T: DependentUpload2<B, Dep1, Dep2>,

Source§

impl<B, T, Dep1> Plugin for DependentAssetPlugin1<B, T, Dep1>
where B: 'static + Send + Sync, Dep1: 'static + Send + Sync, T: DependentUpload1<B, Dep1>,

Source§

impl<B, T> Plugin for DeviceAssetPlugin<B, T>
where B: Backend, T: DeviceUpload<B>,

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<W> Plugin for WindowPlugin<W>
where W: WindowRunner, W::Handle: 'static + Send + Sync + Clone,