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
Future
returned when successfully “asking” a message usingChildRef::ask_anonymously
and which resolves to aResult<Msg, ()>
where theMsg
is 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::recv
orBastionContext::try_recv
) with different types. - Msg
- A message returned by
BastionContext::recv
orBastionContext::try_recv
that should be passed to the [msg!
] macro to try to match what its real type is.