pub unsafe trait Task: Sized {
// Required method
unsafe fn run(context: NonNull<Self>);
}Expand description
§Safety
Implementors access only their admitted context and resources, with the promised thread exclusivity.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".