pub trait WorkItem<const ID: u64 = 0> {
type Pointer: WorkItemPointer<ID>;
// Required method
fn run(this: Self::Pointer);
}Expand description
Defines the method that should be called when this work item is executed.
This trait is used when the work_struct field is defined using the Work helper.
Required Associated Types§
Sourcetype Pointer: WorkItemPointer<ID>
type Pointer: WorkItemPointer<ID>
The pointer type that this struct is wrapped in. This will typically be Arc<Self> or
Pin<KBox<Self>>.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.