Skip to main content

Module stubs

Module stubs 

Source

Structs§

AnySavingHandler
Handler that saves messages it receives (for Any-based routing).
CallCheckHandler
Handler that tracks whether it has been called.
StubMessageHandler
Stub handler which logs messages it receives.
TypedIntoMessageSavingHandler
Ownership-based typed handler which saves the messages it receives.
TypedMessageSavingHandler
Typed handler which saves the messages it receives (no downcast needed).

Functions§

get_any_saving_handler
Creates an Any-based message saving handler and returns both the handler for registration and a clone that can be used to retrieve messages.
get_call_check_handler
Creates a call-checking handler and returns both the handler for registration and a clone that can be used to check if it was called.
get_message_saving_handler
Creates a message saving handler and stores it for later retrieval.
get_saved_messages
Retrieves saved messages from a handler created by get_message_saving_handler.
get_stub_shareable_handler
get_typed_into_message_saving_handler
Creates an ownership-based typed message saving handler and returns both the handler for endpoint registration and a clone that can be used to retrieve messages.
get_typed_message_saving_handler
Creates a typed message saving handler and returns both the handler for subscriptions and a clone that can be used to retrieve messages.

Type Aliases§

MessageSavingHandler