pub struct TaskControlBlockInner {
pub res: Option<TaskUserRes>,
pub trap_cx_ppn: PhysPageNum,
pub task_cx: TaskContext,
pub task_status: TaskStatus,
pub exit_code: Option<i32>,
}
Fields
res: Option<TaskUserRes>
trap_cx_ppn: PhysPageNum
task_cx: TaskContext
task_status: TaskStatus
exit_code: Option<i32>
Implementations
sourceimpl TaskControlBlockInner
impl TaskControlBlockInner
pub fn get_trap_cx(&self) -> &'static mut TrapContext
fn get_status(&self) -> TaskStatus
Auto Trait Implementations
impl !RefUnwindSafe for TaskControlBlockInner
impl Send for TaskControlBlockInner
impl Sync for TaskControlBlockInner
impl Unpin for TaskControlBlockInner
impl !UnwindSafe for TaskControlBlockInner
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more