[][src]Struct shred::AsyncDispatcher

pub struct AsyncDispatcher<'a, R> { /* fields omitted */ }

Like, Dispatcher but works asynchronously.

Methods

impl<'a, R> AsyncDispatcher<'a, R> where
    R: Borrow<Resources> + Send + Sync + 'static, 
[src]

pub fn dispatch(&mut self)[src]

Dispatches the systems asynchronously. Does not execute thread local systems.

If you want to wait for the systems to finish, call wait().

pub fn wait(&mut self)[src]

Waits for all the asynchronously dispatched systems to finish and executes thread local systems (if there are any).

pub fn wait_without_tl(&mut self)[src]

Waits for all the asynchronously dispatched systems to finish without executing thread local systems.

See wait for executing thread local systems.

pub fn running(&mut self) -> bool[src]

Checks if any of the asynchronously dispatched systems are running.

pub fn res(&mut self) -> &R[src]

Returns the resources.

This will wait for the asynchronous systems to finish.

pub fn mut_res(&mut self) -> &mut R[src]

Returns the resources mutable.

This will wait for the asynchronous systems to finish.

Auto Trait Implementations

impl<'a, R> !Send for AsyncDispatcher<'a, R>

impl<'a, R> !Sync for AsyncDispatcher<'a, R>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: Any
[src]