pub unsafe trait TaskHandle {
    type System: KernelBase;

    unsafe fn from_id(id: <Self::System as KernelBase>::RawTaskId) -> Self;
    fn id(&self) -> <Self::System as KernelBase>::RawTaskId;
    fn borrow(&self) -> TaskRef<'_, Self::System>;
}
Expand description

The trait for safe wrappers of System::RawTaskId, i.e., Task and TaskRef.

Required Associated Types

The system type this object pertains to.

Required Methods

Construct a Task from RawTaskId.

Safety

This function is marked as unsafe to prevent safe code from compromising object safety.

Get the raw RawTaskId value representing this object.

Borrow self as TaskRef.

Implementors