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§
source§impl<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§
source§impl<'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
source§fn 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
source§fn 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.
Auto Trait Implementations§
impl<C> Freeze for MultiDispatcher<C>where
C: Freeze,
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more