pub struct AppBuilder<PB>where
    PB: PipelineBuilder,{ /* private fields */ }

Implementations§

source§

impl<PB> AppBuilder<PB>where PB: PipelineBuilder,

source

pub fn new(pipeline_builder: PB) -> Self

source

pub fn pipeline_builder_mut(&mut self) -> &mut PB

source

pub fn install_bundle<ABI, D>( &mut self, installer: ABI, data: D ) -> Result<(), PipelineBuilderError>where ABI: FnMut(&mut AppBuilder<PB>, D) -> Result<(), PipelineBuilderError>,

source

pub fn with_bundle<ABI, D>( self, installer: ABI, data: D ) -> Result<Self, PipelineBuilderError>where ABI: FnMut(&mut AppBuilder<PB>, D) -> Result<(), PipelineBuilderError>,

source

pub fn install_resource<T>(&mut self, resource: T)where T: 'static + Send + Sync,

source

pub fn with_resource<T>(self, resource: T) -> Selfwhere T: 'static + Send + Sync,

source

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>

source

pub fn install_system<AT: AccessType>( &mut self, name: &str, system: System, dependencies: &[&str] ) -> Result<(), PipelineBuilderError>

source

pub fn install_system_on_single_thread<AT: AccessType>( &mut self, name: &str, system: System, dependencies: &[&str] ) -> Result<(), PipelineBuilderError>

source

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>

source

pub fn with_system<AT: AccessType>( self, name: &str, system: System, dependencies: &[&str] ) -> Result<Self, PipelineBuilderError>

source

pub fn with_system_on_single_thread<AT: AccessType>( self, name: &str, system: System, dependencies: &[&str] ) -> Result<Self, PipelineBuilderError>

source

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>,

source

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>,

source

pub fn build_empty<P, AL>(self, life_cycle: AL) -> Appwhere P: PipelineEngine + Send + Sync + Default + 'static, AL: Into<AppLifeCycle>,

source

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,

source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Finalize for T

§

unsafe fn finalize_raw(data: *mut ())

Safety Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Initialize for Twhere T: Default,

§

fn initialize(&mut self)

§

unsafe fn initialize_raw(data: *mut ())

Safety Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> Component for Twhere T: Send + Sync + 'static,