pub fn emit_events_and_response<T, P>(
    type_name: &str,
    response: &T
) -> Result<EmitApplicableEventsAndResponse<P>, Error>
where T: Message, P: VecU8Message + Send + Clone,
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.