[][src]Struct specs_task::TaskManager

pub struct TaskManager<'a> { /* fields omitted */ }

The main object for users of this module. Used for creating and connecting tasks.

Implementations

impl<'_> TaskManager<'_>[src]

pub fn task_is_complete(&self, entity: Entity) -> bool[src]

Returns true iff the task was seen as complete on the last run of the TaskManagerSystem.

WARNING: assumes that this entity was at one point a task, and it can't tell otherwise.

pub fn entity_is_complete(&self, entity: Entity) -> bool[src]

Tells you whether a fork or a task entity is complete.

WARNING: assumes that this entity was at one point a task or a fork, and it can't tell otherwise.

pub fn count_tasks_in_progress(&self) -> usize[src]

Returns the number of tasks that haven't yet completed.

pub fn delete_descendents(&self, entity: Entity)[src]

Deletes only the descendent entities of entity, but leaves entity alive.

pub fn delete_entity_and_descendents(&self, entity: Entity)[src]

Deletes entity and all of its descendents.

Trait Implementations

impl<'a> SystemData<'a> for TaskManager<'a> where
    Entities<'a>: SystemData<'a>,
    WriteStorage<'a, TaskProgress>: SystemData<'a>,
    ReadStorage<'a, SingleEdge>: SystemData<'a>,
    ReadStorage<'a, MultiEdge>: SystemData<'a>, 
[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for TaskManager<'a>

impl<'a> !Send for TaskManager<'a>

impl<'a> !Sync for TaskManager<'a>

impl<'a> Unpin for TaskManager<'a>

impl<'a> !UnwindSafe for TaskManager<'a>

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<'a, T> DynamicSystemData<'a> for T where
    T: SystemData<'a>, 

type Accessor = StaticAccessor<T>

The accessor of the SystemData, which specifies the read and write dependencies and does the fetching. Read more

impl<T> From<T> for T[src]

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

impl<T> Resource for T where
    T: Any, 

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.