Struct shred::MultiDispatcher
source · [−]pub struct MultiDispatcher<C> { /* private fields */ }
Expand description
A bridge from MultiDispatchController
to BatchController
.
This allows to turn a MultiDispatchController
into a BatchController
so it can be registered with
add_batch
.
Implementations
sourceimpl<C> MultiDispatcher<C>
impl<C> MultiDispatcher<C>
sourcepub fn new(controller: C) -> Self
pub fn new(controller: C) -> Self
Constructor.
The controller
should implement MultiDispatchController
.
Trait Implementations
sourceimpl<'a, 'b, 'c, C> BatchController<'a, 'b, 'c> for MultiDispatcher<C> where
C: MultiDispatchController<'c>,
impl<'a, 'b, 'c, C> BatchController<'a, 'b, 'c> for MultiDispatcher<C> where
C: MultiDispatchController<'c>,
type BatchSystemData = <C as MultiDispatchController<'c>>::SystemData
type BatchSystemData = <C as MultiDispatchController<'c>>::SystemData
This associated type has to contain all resources batch controller uses directly. Read more
sourcefn run(&mut self, world: &'c World, dispatcher: &mut Dispatcher<'a, 'b>)
fn run(&mut self, world: &'c World, dispatcher: &mut Dispatcher<'a, 'b>)
The body of the controller. Read more
sourcefn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Estimate how heavy the whole controller, including the sub-systems, is in terms of computation costs. Read more
Auto Trait Implementations
impl<C> RefUnwindSafe for MultiDispatcher<C> where
C: RefUnwindSafe,
impl<C> Send for MultiDispatcher<C> where
C: Send,
impl<C> Sync for MultiDispatcher<C> where
C: Sync,
impl<C> Unpin for MultiDispatcher<C> where
C: Unpin,
impl<C> UnwindSafe for MultiDispatcher<C> where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more