pub struct Multiverse {
    pub parallel: bool,
    /* private fields */
}

Fields§

§parallel: bool

Implementations§

source§

impl Multiverse

source

pub fn new<T, S>(pipeline: T, state: S) -> Selfwhere T: PipelineEngine + 'static + Send + Sync, S: State + 'static,

source

pub fn with_parallel(self, mode: bool) -> Self

source

pub fn create_universe<S>(&mut self, state: S) -> UniverseIdwhere S: State + 'static,

source

pub fn delete_universe(&mut self, id: UniverseId) -> Option<Universe>

source

pub fn default_universe_id(&self) -> Option<UniverseId>

source

pub fn set_default_universe_id(&mut self, id: Option<UniverseId>)

source

pub fn default_universe(&self) -> Option<&Universe>

source

pub fn default_universe_mut(&mut self) -> Option<&mut Universe>

source

pub fn universe(&self, id: UniverseId) -> Option<&Universe>

source

pub fn universe_mut(&mut self, id: UniverseId) -> Option<&mut Universe>

source

pub fn universe_ids(&self) -> impl Iterator<Item = UniverseId> + '_

source

pub fn universes(&self) -> impl Iterator<Item = &Universe>

source

pub fn universes_mut(&mut self) -> impl Iterator<Item = &mut Universe>

source

pub fn universes_with_ids( &self ) -> impl Iterator<Item = (UniverseId, &Universe)>

source

pub fn universes_with_ids_mut( &mut self ) -> impl Iterator<Item = (UniverseId, &mut Universe)>

source

pub fn insert_pipeline<T>(&mut self, pipeline: T) -> PipelineIdwhere T: PipelineEngine + 'static + Send + Sync,

source

pub fn remove_pipeline(&mut self, id: PipelineId)

source

pub fn pipeline_ids(&self) -> impl Iterator<Item = PipelineId> + '_

source

pub fn bind(&mut self, universe: UniverseId, pipeline: PipelineId)

source

pub fn unbind(&mut self, universe: UniverseId)

source

pub fn unbind_all(&mut self)

source

pub fn is_running(&self) -> bool

source

pub fn process(&mut self)

Trait Implementations§

source§

impl Default for Multiverse

source§

fn default() -> Multiverse

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

Auto Trait Implementations§

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,