pub unsafe trait RawDelayedWorkItem<const ID: u64>: RawWorkItem<ID> { }
Expand description

A raw delayed work item.

§Safety

If the __enqueue method in the RawWorkItem implementation calls the closure, then the provided pointer must point at the work field of a valid delayed_work, and the guarantees that __enqueue provides about accessing the work_struct must also apply to the rest of the delayed_work struct.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T, const ID: u64> RawDelayedWorkItem<ID> for Pin<KBox<T>>
where T: WorkItem<ID, Pointer = Self> + HasDelayedWork<T, ID>,

Implementors§

source§

impl<T, const ID: u64> RawDelayedWorkItem<ID> for Arc<T>
where T: WorkItem<ID, Pointer = Self> + HasDelayedWork<T, ID>,