Struct shred::Par [] [src]

pub struct Par<H, T> { /* fields omitted */ }

Runs two tasks in parallel. These two tasks are called head and tail in the following documentation.

Methods

impl<H> Par<H, Nil>
[src]

[src]

Creates a new Par struct, with the tail being a no-op.

[src]

Adds sys as the second job and returns a new Par struct with the previous struct as head and a no-op tail.

Trait Implementations

impl<'a, H, T> RunWithPool<'a> for Par<H, T> where
    H: RunWithPool<'a> + Send,
    T: RunWithPool<'a> + Send
[src]

[src]

Sets up Resources for a later call to run.

[src]

Runs the system/group of systems. Possibly in parallel depending on how the structure is set up. Read more

[src]

Accumulates the necessary read/shared resources from the systems in this group. Read more

[src]

Accumulates the necessary write/exclusive resources from the systems in this group. Read more

Auto Trait Implementations

impl<H, T> Send for Par<H, T> where
    H: Send,
    T: Send

impl<H, T> Sync for Par<H, T> where
    H: Sync,
    T: Sync