pub struct TaskRunnerSystem<T> { /* private fields */ }
Expand description
The counterpart to an implementation TaskComponent
. Runs tasks until completion.
See the tests for usage.
Trait Implementations§
Source§impl<T> Default for TaskRunnerSystem<T>
impl<T> Default for TaskRunnerSystem<T>
Source§impl<'a, T> System<'a> for TaskRunnerSystem<T>where
T: TaskComponent<'a>,
impl<'a, T> System<'a> for TaskRunnerSystem<T>where
T: TaskComponent<'a>,
Source§type SystemData = (Storage<'a, TaskProgress, Fetch<'a, MaskedStorage<TaskProgress>>>, Storage<'a, T, FetchMut<'a, MaskedStorage<T>>>, <T as TaskComponent<'a>>::Data)
type SystemData = (Storage<'a, TaskProgress, Fetch<'a, MaskedStorage<TaskProgress>>>, Storage<'a, T, FetchMut<'a, MaskedStorage<T>>>, <T as TaskComponent<'a>>::Data)
The resource bundle required to execute this system. Read more
Source§fn run(&mut self, (progress, tasks, task_data): Self::SystemData)
fn run(&mut self, (progress, tasks, task_data): Self::SystemData)
Executes the system with the required system
data.
Source§fn running_time(&self) -> RunningTime
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running.
This is used to optimize the way they’re executed (might
allow more parallelization). Read more
Source§fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
fn accessor<'b>(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the
SystemData
.Auto Trait Implementations§
impl<T> Freeze for TaskRunnerSystem<T>
impl<T> RefUnwindSafe for TaskRunnerSystem<T>where
T: RefUnwindSafe,
impl<T> Send for TaskRunnerSystem<T>where
T: Send,
impl<T> Sync for TaskRunnerSystem<T>where
T: Sync,
impl<T> Unpin for TaskRunnerSystem<T>where
T: Unpin,
impl<T> UnwindSafe for TaskRunnerSystem<T>where
T: 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
Source§impl<T> TryDefault for Twhere
T: Default,
impl<T> TryDefault for Twhere
T: Default,
Source§fn try_default() -> Result<T, String>
fn try_default() -> Result<T, String>
Tries to create the default.
Source§fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls
try_default
and panics on an error case.