Skip to main content

Task

Trait Task 

Source
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§

Source

unsafe fn run(context: NonNull<Self>)

§Safety

The context and all resources it uses must retain their admitted access rights through this execution.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§