[]Struct amethyst::ecs::prelude::Dispatcher

pub struct Dispatcher<'a, 'b> { /* fields omitted */ }

The dispatcher struct, allowing systems to be executed in parallel.

Methods

impl<'a, 'b> Dispatcher<'a, 'b>

Sets up all the systems which means they are gonna add default values for the resources they need.

Dispatch all the systems with given resources and context and then run thread local systems.

This function automatically redirects to

and runs dispatch_thread_local afterwards.

Please note that this method assumes that no resource is currently borrowed. If that's the case, it panics.

Dispatches the systems (except thread local systems) in parallel given the resources to operate on.

This operation blocks the executing thread.

Only available with "parallel" feature enabled.

Please note that this method assumes that no resource is currently borrowed. If that's the case, it panics.

Dispatches the systems (except thread local systems) sequentially.

This is useful if parallel overhead is too big or the platform does not support multithreading.

Please note that this method assumes that no resource is currently borrowed. If that's the case, it panics.

Dispatch only thread local systems sequentially.

Please note that this method assumes that no resource is currently borrowed. If that's the case, it panics.

Trait Implementations

impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>

Runs the system now. Read more

Sets up Resources for a later call to run_now.

Auto Trait Implementations

impl<'a, 'b> !Send for Dispatcher<'a, 'b>

impl<'a, 'b> !Sync for Dispatcher<'a, 'b>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<'a, T> RunNow for T where
    T: System<'a>, 

Runs the system now. Read more

Sets up Resources for a later call to run_now.

impl<T> Any for T where
    T: Any

impl<T> Erased for T

impl<T> Downcast for T where
    T: Any

Convert Box<Trait> (where Trait: Downcast) to Box<Any>. Box<Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any's vtable from &Trait's. Read more

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any's vtable from &mut Trait's. Read more

impl<T> SetParameter for T

Sets value as a parameter of self.