Expand description
Dynamic dispatch oriented messaging system
This system allows:
- Generic communication between mailboxes.
- All message communication relies on at-most-once delivery guarantee.
- Messages are not guaranteed to be ordered, all message’s order is causal.
Structs§
- Answer
- A
Futurereturned when successfully “asking” a message usingChildRef::ask_anonymouslyand which resolves to aResult<Msg, ()>where theMsgis the message answered by the child (see the [msg!] macro for more information). - Answer
Sender - Allows to respond to questions.
- Message
Handler - Matches a
Msg(as returned byBastionContext::recvorBastionContext::try_recv) with different types. - Msg
- A message returned by
BastionContext::recvorBastionContext::try_recvthat should be passed to the [msg!] macro to try to match what its real type is.