pub trait MessageBuilder<M> {
// Required methods
fn send(&mut self, message: M, scope: InteractionScope);
fn receive(&mut self, message: M, scope: InteractionScope);
}Expand description
A builder that can send and receive messages (or interactions) with other AIRs.
Required Methods§
Sourcefn send(&mut self, message: M, scope: InteractionScope)
fn send(&mut self, message: M, scope: InteractionScope)
Sends a message.
Sourcefn receive(&mut self, message: M, scope: InteractionScope)
fn receive(&mut self, message: M, scope: InteractionScope)
Receives a message.