Skip to main content

build_dispatch_table

Function build_dispatch_table 

Source
pub fn build_dispatch_table(
    policy: &Arc<NotifPolicy>,
    resource: &Arc<Mutex<ResourceState>>,
) -> DispatchTable
Expand description

Build the dispatch table from a NotifPolicy. Every branch from the old monolithic dispatch() function is translated into a table.register() call. Priority is preserved by registration order.