[][src]Struct shred::Seq

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

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

Methods

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

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

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

pub fn with<T>(self, sys: T) -> Seq<Seq<H, T>, Nil>[src]

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

Trait Implementations

impl<'a, H, T> RunWithPool<'a> for Seq<H, T> where
    H: RunWithPool<'a>,
    T: RunWithPool<'a>, 
[src]

Auto Trait Implementations

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

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

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: Any
[src]