pub struct MessageDispatcher;Expand description
Message dispatcher for routing by type
Implementations§
Source§impl MessageDispatcher
impl MessageDispatcher
Sourcepub fn dispatch<'a, H: MessageHandler>(
message: &ParsedMessage<'a>,
handler: &H,
) -> Result<(), DCPError>
pub fn dispatch<'a, H: MessageHandler>( message: &ParsedMessage<'a>, handler: &H, ) -> Result<(), DCPError>
Dispatch a parsed message to the appropriate handler
Auto Trait Implementations§
impl Freeze for MessageDispatcher
impl RefUnwindSafe for MessageDispatcher
impl Send for MessageDispatcher
impl Sync for MessageDispatcher
impl Unpin for MessageDispatcher
impl UnsafeUnpin for MessageDispatcher
impl UnwindSafe for MessageDispatcher
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