Trait specs::prelude::RunNow
[−]
[src]
pub trait RunNow<'a> { fn run_now(&mut self, res: &'a Resources); fn setup(&mut self, res: &mut Resources); }
Trait for fetching data and running systems. Automatically implemented for systems.
Required Methods
fn run_now(&mut self, res: &'a Resources)
Runs the system now.
Panics
Panics if the system tries to fetch resources which are borrowed in an incompatible way already (tries to read from a resource which is already written to or tries to write to a resource which is read from).
fn setup(&mut self, res: &mut Resources)
Sets up Resources
for a later call to run_now
.
Implementations on Foreign Types
impl<'a, P, T> RunNow<'a> for ParSeq<P, T> where
P: Borrow<ThreadPool>,
T: RunWithPool<'b>,
[src]
P: Borrow<ThreadPool>,
T: RunWithPool<'b>,
Implementors
impl<'a, T> RunNow<'a> for T where
T: System<'a>,impl<'a, 'b, 'c> RunNow<'a> for Dispatcher<'b, 'c>