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, |_| {});
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.