Skip to main content

make_codec_dispatcher

Function make_codec_dispatcher 

Source
pub fn make_codec_dispatcher<T>() -> RoleDispatcher
where T: CodecRuntime + 'static, <T as CodecRuntime>::Error: Display,
Expand description

Build a RoleDispatcher for a concrete impl of crate::roles::CodecRuntime. 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.