pub struct TaskContext {
pub id: TaskId,
pub priority: Priority,
pub name: Option<&'static str>,
}Expand description
Task execution context and metadata.
Fields§
§id: TaskIdUnique identifier for this task
priority: PriorityPriority level for scheduling
name: Option<&'static str>Optional name for debugging
Implementations§
Trait Implementations§
Source§impl Clone for TaskContext
impl Clone for TaskContext
Auto Trait Implementations§
impl Freeze for TaskContext
impl RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl UnsafeUnpin 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