pub struct TaskPtr(/* private fields */);Expand description
A wrapper around NonNull
§Safety
This is safe because:
- Tasks are only accessed with proper synchronization (scheduler lock)
- The scheduler ensures exclusive access during context switches
- Task memory is managed by the kernel and won’t be deallocated while referenced
Implementations§
Trait Implementations§
impl Copy for TaskPtr
impl Eq for TaskPtr
impl Send for TaskPtr
impl StructuralPartialEq for TaskPtr
impl Sync for TaskPtr
Auto Trait Implementations§
impl Freeze for TaskPtr
impl !RefUnwindSafe for TaskPtr
impl Unpin for TaskPtr
impl !UnwindSafe for TaskPtr
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)