pub struct TaskId(u64);
Expand description
not to confuse with a integer TID. A TaskID identifies a task and locate
it. In this case the TaskID wraps around the task struct’s address. The
reason why the scheduler doesn’t directly store Box<Task>
(or alike) is that
the smart pointer types automatically drops the owned values when their
lifetime end. For now want to have manual control of when, where and how I
drop the Task because there could be more plans than just freeing the memory
Tuple Fields§
§0: u64
Implementations§
Trait Implementations§
Source§impl Ord for TaskId
impl Ord for TaskId
Source§impl PartialOrd for TaskId
impl PartialOrd for TaskId
impl Copy for TaskId
impl Eq for TaskId
impl StructuralPartialEq for TaskId
Auto Trait Implementations§
impl Freeze for TaskId
impl RefUnwindSafe for TaskId
impl Send for TaskId
impl Sync for TaskId
impl Unpin for TaskId
impl UnwindSafe for TaskId
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, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)