Struct os::task::TaskControlBlock
source · pub struct TaskControlBlock {
pub task_status: TaskStatus,
pub task_cx: TaskContext,
}Expand description
The task control block (TCB) of a task.
Fields§
§task_status: TaskStatusThe task status in it’s lifecycle
task_cx: TaskContextThe task context
Trait Implementations§
source§impl Clone for TaskControlBlock
impl Clone for TaskControlBlock
source§fn clone(&self) -> TaskControlBlock
fn clone(&self) -> TaskControlBlock
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TaskControlBlock
Auto Trait Implementations§
impl Freeze for TaskControlBlock
impl RefUnwindSafe for TaskControlBlock
impl Send for TaskControlBlock
impl Sync for TaskControlBlock
impl Unpin for TaskControlBlock
impl UnwindSafe for TaskControlBlock
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