Struct oxygengine_core::app::AppBuilder
source · [−]pub struct AppBuilder<PB> where
PB: PipelineBuilder, { /* private fields */ }
Implementations
sourceimpl<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) -> Self where
T: 'static + Send + Sync,
pub fn install_system_on_layer<AT: AccessType>(
&mut self,
name: &str,
system: System,
dependencies: &[&str],
layer: PipelineLayer
) -> Result<(), PipelineBuilderError>
pub fn install_system<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
) -> Result<Self, PipelineBuilderError>
pub fn with_system<AT: AccessType>(
self,
name: &str,
system: System,
dependencies: &[&str]
) -> Result<Self, PipelineBuilderError>
pub fn build<P, S, AT>(self, state: S, app_timer: AT) -> App where
P: PipelineEngine + Send + Sync + Default + 'static,
S: State + 'static,
AT: AppTimer + 'static,
pub fn build_with_engine<P, S, AT>(
self,
engine: P,
state: S,
app_timer: AT
) -> App where
P: PipelineEngine + Send + Sync + 'static,
S: State + 'static,
AT: AppTimer + 'static,
pub fn build_empty<P, AT>(self, app_timer: AT) -> App where
P: PipelineEngine + Send + Sync + Default + 'static,
AT: AppTimer + 'static,
pub fn build_empty_with_engine<P, AT>(self, engine: P, app_timer: AT) -> App where
P: PipelineEngine + Send + Sync + 'static,
AT: AppTimer + 'static,
Trait Implementations
sourceimpl<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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more