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

Implements the WorkAdapter trait for an adapter type.

Examples


struct Example {
    work: Work,
}

struct Adapter;

kernel::impl_work_adapter!(Adapter, Example, work, |_| {});
This documentation is an old archive. Please see https://rust.docs.kernel.org instead.