Skip to main content

make_peer_selector_dispatcher

Function make_peer_selector_dispatcher 

Source
pub fn make_peer_selector_dispatcher<T: PeerSelectorRuntime + 'static>() -> RoleDispatcher
Expand description

Build a RoleDispatcher for a concrete impl of crate::roles::PeerSelectorRuntime. Used by Engine::register_*_dispatcher chain (Node::with_<role>(&value)) so single-role components dispatch through the same TypeId-keyed registry as multi-role / Protocol-bearing components.