Structs
- Active choice between
P
andQ
- End of communication session
- Passive choice (offer) between
P
andQ
- Allows recursing
- A
Protocol
is a specific type ofProcess
. - A value that the protocol captures from the parent process.
- Allows recursively calling a protocol
- Receive
A
, thenP
- Send
A
, thenP
- A special case of the protocol with a
result()
function.
Enums
Traits
- The HasDual trait defines the dual relationship between protocols.