macro_rules! impl_self_work_adapter {
    ($work_type:ty, $field:ident, $closure:expr) => { ... };
}
Expand description

Implements the WorkAdapter trait for a type where its Work instance is a field.

Examples


struct Example {
    work: Work,
}

kernel::impl_self_work_adapter!(Example, work, |_| {});