Macro kernel::impl_work_adapter
source · [−]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, |_| {});