Struct oxygengine_core::app::AppBuilder
source · pub struct AppBuilder<PB>where
PB: PipelineBuilder,{ /* private fields */ }
Implementations§
source§impl<PB> AppBuilder<PB>where
PB: PipelineBuilder,
impl<PB> AppBuilder<PB>where PB: PipelineBuilder,
pub fn new(pipeline_builder: PB) -> Self
pub fn pipeline_builder_mut(&mut self) -> &mut PB
pub fn install_bundle<ABI, D>( &mut self, installer: ABI, data: D ) -> Result<(), PipelineBuilderError>where ABI: FnMut(&mut AppBuilder<PB>, D) -> Result<(), PipelineBuilderError>,
pub fn with_bundle<ABI, D>( self, installer: ABI, data: D ) -> Result<Self, PipelineBuilderError>where ABI: FnMut(&mut AppBuilder<PB>, D) -> Result<(), PipelineBuilderError>,
pub fn install_resource<T>(&mut self, resource: T)where T: 'static + Send + Sync,
pub fn with_resource<T>(self, resource: T) -> Selfwhere T: 'static + Send + Sync,
pub fn install_system_on_layer<AT: AccessType>( &mut self, name: &str, system: System, dependencies: &[&str], layer: PipelineLayer, lock_on_single_thread: bool ) -> Result<(), PipelineBuilderError>
pub fn install_system<AT: AccessType>( &mut self, name: &str, system: System, dependencies: &[&str] ) -> Result<(), PipelineBuilderError>
pub fn install_system_on_single_thread<AT: AccessType>( &mut self, name: &str, system: System, dependencies: &[&str] ) -> Result<(), PipelineBuilderError>
pub fn with_system_on_layer<AT: AccessType>( self, name: &str, system: System, dependencies: &[&str], layer: PipelineLayer, lock_on_single_thread: bool ) -> Result<Self, PipelineBuilderError>
pub fn with_system<AT: AccessType>( self, name: &str, system: System, dependencies: &[&str] ) -> Result<Self, PipelineBuilderError>
pub fn with_system_on_single_thread<AT: AccessType>( self, name: &str, system: System, dependencies: &[&str] ) -> Result<Self, PipelineBuilderError>
pub fn build<P, S, AL>(self, state: S, life_cycle: AL) -> Appwhere P: PipelineEngine + Send + Sync + Default + 'static, S: State + 'static, AL: Into<AppLifeCycle>,
pub fn build_with_engine<P, S, AL>( self, engine: P, state: S, life_cycle: AL ) -> Appwhere P: PipelineEngine + Send + Sync + 'static, S: State + 'static, AL: Into<AppLifeCycle>,
pub fn build_empty<P, AL>(self, life_cycle: AL) -> Appwhere P: PipelineEngine + Send + Sync + Default + 'static, AL: Into<AppLifeCycle>,
pub fn build_empty_with_engine<P, AL>(self, engine: P, life_cycle: AL) -> Appwhere P: PipelineEngine + Send + Sync + 'static, AL: Into<AppLifeCycle>,
Trait Implementations§
source§impl<PB> Default for AppBuilder<PB>where
PB: PipelineBuilder + Default,
impl<PB> Default for AppBuilder<PB>where PB: PipelineBuilder + Default,
Auto Trait Implementations§
impl<PB> !RefUnwindSafe for AppBuilder<PB>
impl<PB> Send for AppBuilder<PB>where PB: Send,
impl<PB> Sync for AppBuilder<PB>where PB: Sync,
impl<PB> Unpin for AppBuilder<PB>where PB: Unpin,
impl<PB> !UnwindSafe for AppBuilder<PB>
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more