Expand description
Synchronous IO wrappers that inject failures into real Read/Write
types.
Each wrapper holds a FailureSchedule and increments an attempt
counter on every read/write call. When the schedule fires, the call
returns an io::Error derived from the FailureMode. On
non-failing attempts, the wrapper delegates to the underlying type
and preserves its bytes-on-disk behavior.
Structs§
- Chaos
Reader - Wraps a
Readand injects failures per aFailureSchedule. - Chaos
Writer - Wraps a
Writeand injects failures per aFailureSchedule.
Type Aliases§
- Chaos
File - Convenience: a
ChaosWriter<File>.