pub struct RoleDispatcher { /* private fields */ }Expand description
One registered ProtocolRuntime / <Role>Runtime dispatcher.
dispatch downcasts to the concrete type T (guaranteed by the
TypeId-keyed registry) and delegates to T::dispatch_atomic.
materialize is the parallel entry for
crate::roles::BackendRuntime::materialize_from_wire; non-Backend
roles register no_materialize so the engine’s wire-decode hot
path always finds an entry without a per-role conditional.
Auto Trait Implementations§
impl Freeze for RoleDispatcher
impl RefUnwindSafe for RoleDispatcher
impl Send for RoleDispatcher
impl Sync for RoleDispatcher
impl Unpin for RoleDispatcher
impl UnsafeUnpin for RoleDispatcher
impl UnwindSafe for RoleDispatcher
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more