pub struct TaskContext {
pub task_id: TaskId,
pub inputs: HashMap<String, Vec<u8>>,
}Expand description
Execution context provided to a task function.
Fields§
§task_id: TaskIdThe ID of the currently executing task.
inputs: HashMap<String, Vec<u8>>Input data keyed by DataRef::name.
Auto Trait Implementations§
impl Freeze for TaskContext
impl RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl UnwindSafe for TaskContext
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