Trait CommandBus

Source
pub trait CommandBus {
    // Required method
    fn dispatch<'b>(
        &self,
        command: &'b dyn Command,
        bus_opt: Option<&'b dyn Bus>,
    ) -> Events;
}

Required Methods§

Source

fn dispatch<'b>( &self, command: &'b dyn Command, bus_opt: Option<&'b dyn Bus>, ) -> Events

Implementors§