Trait dendrite::axon_utils::AggregateRegistry [−][src]
Trait that needs to be implemented by the aggregate registry.
Required methods
fn register(
&mut self,
applicator: &'static dyn Fn(&mut Self) -> Result<()>
) -> Result<()>
[src]
&mut self,
applicator: &'static dyn Fn(&mut Self) -> Result<()>
) -> Result<()>
fn insert(&mut self, aggregate_handle: Arc<dyn AggregateHandle>) -> Result<()>
[src]
fn get(&self, name: &str) -> Option<Arc<dyn AggregateHandle>>
[src]
fn register_commands(
&self,
commands: &mut Vec<String>,
command_to_aggregate_mapping: &mut HashMap<String, String>
)
[src]
&self,
commands: &mut Vec<String>,
command_to_aggregate_mapping: &mut HashMap<String, String>
)
Implementors
impl AggregateRegistry for TheAggregateRegistry
[src]
fn register(
&mut self,
applicator: &'static dyn Fn(&mut Self) -> Result<()>
) -> Result<()>
[src]
&mut self,
applicator: &'static dyn Fn(&mut Self) -> Result<()>
) -> Result<()>
fn insert(&mut self, aggregate_handle: Arc<dyn AggregateHandle>) -> Result<()>
[src]
fn get(&self, name: &str) -> Option<Arc<dyn AggregateHandle>>
[src]
fn register_commands(
&self,
commands: &mut Vec<String>,
command_to_aggregate_mapping: &mut HashMap<String, String>
)
[src]
&self,
commands: &mut Vec<String>,
command_to_aggregate_mapping: &mut HashMap<String, String>
)