[−][src]Struct shred::Seq
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]
H: RunWithPool<'a>,
T: RunWithPool<'a>,
fn setup(&mut self, world: &mut World)
[src]
fn run(&mut self, world: &'a World, pool: &ThreadPool)
[src]
fn reads(&self, reads: &mut Vec<ResourceId>)
[src]
fn writes(&self, writes: &mut Vec<ResourceId>)
[src]
Auto Trait Implementations
impl<H, T> Unpin for Seq<H, T> where
H: Unpin,
T: Unpin,
H: Unpin,
T: Unpin,
impl<H, T> Sync for Seq<H, T> where
H: Sync,
T: Sync,
H: Sync,
T: Sync,
impl<H, T> Send for Seq<H, T> where
H: Send,
T: Send,
H: Send,
T: Send,
impl<H, T> UnwindSafe for Seq<H, T> where
H: UnwindSafe,
T: UnwindSafe,
H: UnwindSafe,
T: UnwindSafe,
impl<H, T> RefUnwindSafe for Seq<H, T> where
H: RefUnwindSafe,
T: RefUnwindSafe,
H: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,