Expand description
Built-in demo chunks assembled with crate::ChunkBuilder.
These are the runtime’s “hello world” suite: scalar arithmetic, an
Atomic Hop ping-pong, request-reply, selective receive
(ReceiveMatch), and a deliberate Trap for supervisor demos.
Constants§
- TAG_
JUNK - Decoy hop for
selective_receive— must be skipped byReceiveMatch. - TAG_
PING - TAG_
PONG - TAG_REP
- TAG_REQ
- Protocol tags for Atomic Hop samples.
Functions§
- add_
forty_ two r0 = 41 + 1; return r0— the 60-second sanity chunk.- ask_
reply - Atomic request/reply via
Opcode::Ask(RPC hop). - atomic_
request_ reply - Atomic request-reply with
crate::Value::Message(one envelope per hop). - boom
- Immediate
Trap— used to showcrate::Supervisorrestart. - forged_
sender_ ask - Same security property as
forged_sender_send, viaOpcode::Ask. - forged_
sender_ send - Security regression sample: forged
make_msgsender must not surviveSend. - ping_
pong - Two flows, one Atomic Hop round-trip:
mainsends aMessagetopong,pongreplies with payload+1 viamsg_reply_cap,mainreturns that payload (2). - selective_
receive - Selective Atomic Hop: server waits for
TAG_REQwhile aTAG_JUNKhop sits ahead in the mailbox (FIFO skip, not drop).