[][src]Struct shred::Par

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

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


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

pub fn new(head: H) -> Self[src]

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

pub fn with<T>(self, sys: T) -> Par<Par<H, T>, Nil> where
    H: for<'a> RunWithPool<'a>,
    T: for<'a> RunWithPool<'a>, 

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

Auto Trait Implementations

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

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

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

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

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.