id_effect 0.12.0

Effect<A, E, R>: lazy Send effects over a typed capability list, run on a fiber runtime (Tokio executor), with layers, streams, schedules and coordination
Documentation
1
2
3
4
5
6
7
# Error Handling — Cause, Exit, and Recovery

Part II gave you the full dependency injection story. Part III is about what happens when things go wrong — and in production, things always go wrong.

Rust's `Result<T, E>` is excellent for *expected* errors: outcomes you anticipated and typed. But real programs also encounter *unexpected* failures: panics, OOM conditions, and cancelled fibers. id_effect models all of these with a richer type hierarchy.

This chapter introduces `Cause` (the full error taxonomy), `Exit` (the terminal outcome of any effect), and the combinators for recovering from both.