Skip to main content

Module typed_handler

Module typed_handler 

Source
Expand description

Compile-time type-safe message handler infrastructure.

This module provides generic handler traits and types that enable type-safe message dispatch without runtime downcasting for built-in message types.

Structs§

CallbackHandler
A callback-based handler implementation.
IntoCallbackHandler
A callback-based handler implementation that takes ownership.
TypedHandler
A shareable wrapper for typed handlers.
TypedIntoHandler
A shareable wrapper for ownership-based typed handlers.

Traits§

Handler
Compile-time type-safe message handler trait.
IntoHandler
Compile-time type-safe message handler trait that takes ownership.

Functions§

shareable_handler
Creates a new ShareableMessageHandler from an Rc<dyn Handler<dyn Any>>.

Type Aliases§

ShareableMessageHandler
Type alias for handlers that work with dynamically-typed messages.