Function dendrite_auth::dendrite::axon_utils::emit_events_and_response
source · pub fn emit_events_and_response<T, P>(
type_name: &str,
response: &T
) -> Result<EmitApplicableEventsAndResponse<P>, Error>
Expand description
Creates a struct that can be returned by a command handler to supply both the events that have to be emitted and the response to the caller.