rustress 0.1.1

High-performance load testing engine with an interactive terminal dashboard. Open-loop (RPS) and closed-loop (virtual users) load models with live p50/p90/p95/p99 latency telemetry.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// Data passed to template execution context.
#[derive(Debug, Clone, Default)]
pub struct TemplateContext {
    /// Stable virtual user identifier, available to templates as `user_id`.
    pub user_id: String,
}

impl TemplateContext {
    pub fn new(user_id: String) -> Self {
        Self { user_id }
    }
}