Rust edition
Contents
The Itinera book for Rust, in reading order. It follows the plan that every language's book shares, BOOK.md, which also says what each chapter covers. Every program the chapters show is complete: those in examples run with cargo run --example NAME from the book's rust directory.
Welcome
Part 1: Why Itinera
Part 2: Getting started
- Installing Itinera
- A first step
- A first journey
- Passing data on
- Giving a step the tools it needs
- Seeing what happened
- Saying what only a step knows
- More than one reporter
- Naming a journey
- Trying again
- A carrier for each attempt
- Repairing, then trying once more
- Reacting to what a step did
- Skipping a step
- Giving up a step early
- Doing something when the journey ends
- Letting policies act on the outside world
- An optional input
- Deciding where a step's data comes from
Part 3: Controlling the flow
Part 4: Running it for real
- Running many journeys
- Reading the result
- Running async journeys while others wait
- Testing a step alone
- Testing a hook or an adapter alone
- Testing the flow with scripted steps
- Testing a whole journey
- Stopping a journey when its log fails
- Seeing every event of a journey
- Giving every reporter what it needs
- Saying which attempt took the money
- Giving the rescue step a service of its own
- Orders refused before they start
- Mistakes caught before a journey
- Declaring by hand