pub struct Processor {
current: Option<Arc<TaskControlBlock>>,
idle_task_cx: TaskContext,
}Fields§
§current: Option<Arc<TaskControlBlock>>§idle_task_cx: TaskContextImplementations§
Source§impl Processor
impl Processor
pub fn new() -> Self
fn get_idle_task_cx_ptr(&mut self) -> *mut TaskContext
pub fn take_current(&mut self) -> Option<Arc<TaskControlBlock>>
pub fn current(&self) -> Option<Arc<TaskControlBlock>>
Auto Trait Implementations§
impl Freeze for Processor
impl !RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnsafeUnpin for Processor
impl !UnwindSafe for Processor
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