Struct Multiverse

Source
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) -> Self
where 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) -> UniverseId
where 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) -> PipelineId
where 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 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,