tower-fault 
tower-fault is a library for injecting various faults into a tower::Service.
Layers
You can use the following layers to inject faults into a service:
ErrorLayer- randomly inject errors into a service.LatencyLayer- randomly add latency into a service.
Example usage
use ;
use ;
async
// LatencyLayer with a 10% probability of injecting 200 to 500 milliseconds
// of latency.
let latency_layer = new;
// ErrorLayer that injects an error if the request value is greater than 10.
let error_layer = new;
let service = new
.layer
.service;