Trait r3_core::kernel::task::TaskHandle
source · pub unsafe trait TaskHandle {
type System: KernelBase;
// Required methods
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>;
}
Required Associated Types§
sourcetype System: KernelBase
type System: KernelBase
The system type this object pertains to.
Required Methods§
sourceunsafe fn from_id(id: <Self::System as KernelBase>::RawTaskId) -> Self
unsafe fn from_id(id: <Self::System as KernelBase>::RawTaskId) -> Self
Construct a Task
from RawTaskId
.
Safety
This function is marked as unsafe
to prevent safe code from
compromising object safety.
sourcefn id(&self) -> <Self::System as KernelBase>::RawTaskId
fn id(&self) -> <Self::System as KernelBase>::RawTaskId
Get the raw RawTaskId
value representing this object.