Struct AppBuilder

Source
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) -> Self
where 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) -> App
where 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, ) -> App
where P: PipelineEngine + Send + Sync + 'static, S: State + 'static, AL: Into<AppLifeCycle>,

Source

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

Source

pub fn build_empty_with_engine<P, AL>(self, engine: P, life_cycle: AL) -> App
where P: PipelineEngine + Send + Sync + 'static, AL: Into<AppLifeCycle>,

Trait Implementations§

Source§

impl<PB> Default for AppBuilder<PB>

Source§

fn default() -> Self

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

Auto Trait Implementations§

§

impl<PB> Freeze for AppBuilder<PB>
where PB: Freeze,

§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> Finalize for T

Source§

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.

Source§

impl<T> Initialize for T
where T: Default,

Source§

fn initialize(&mut self)

Source§

unsafe fn initialize_raw(data: *mut ())

Safety Read more
Source§

impl<T, U> Into<U> for T
where 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 T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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 T
where T: Send + Sync + 'static,