pub struct Mapped<T, F> { /* private fields */ }Expand description
A task that maps the output of another task.
Implementations§
Trait Implementations§
Source§impl<T, F, U> Task for Mapped<T, F>
impl<T, F, U> Task for Mapped<T, F>
Source§fn context(&self) -> &TaskContext
fn context(&self) -> &TaskContext
Get the task context for scheduling and debugging.
Source§fn is_stealable(&self) -> bool
fn is_stealable(&self) -> bool
Check if this task can be stolen by another thread.
Source§fn estimated_cost(&self) -> u32
fn estimated_cost(&self) -> u32
Estimate the computational cost of this task (for load balancing).
Auto Trait Implementations§
impl<T, F> Freeze for Mapped<T, F>
impl<T, F> RefUnwindSafe for Mapped<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for Mapped<T, F>
impl<T, F> Sync for Mapped<T, F>
impl<T, F> Unpin for Mapped<T, F>
impl<T, F> UnsafeUnpin for Mapped<T, F>where
T: UnsafeUnpin,
F: UnsafeUnpin,
impl<T, F> UnwindSafe for Mapped<T, F>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> TaskExt for Twhere
T: Task,
impl<T> TaskExt for Twhere
T: Task,
Source§fn with_context(self, context: TaskContext) -> ContextualTask<Self>
fn with_context(self, context: TaskContext) -> ContextualTask<Self>
Convert this task into a task with the given context.