Function dendrite::axon_utils::emit_events_and_response[][src]

pub fn emit_events_and_response<T: Message, P: VecU8Message + Send + Clone>(
    type_name: &str,
    response: &T
) -> Result<EmitApplicableEventsAndResponse<P>>

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.