Skip to main content

SharedCapture

Type Alias SharedCapture 

Source
pub type SharedCapture = Arc<Mutex<MitmCapture>>;
Expand description

Shared capture for optional in-process proxy (thread-safe).

§Interior mutability

std::sync::Mutex is used because handlers take short critical sections that do not hold the guard across .await. Poison is recovered via [lock_capture] so a panic in one handler cannot drop later captures.

Aliased Type§

pub struct SharedCapture { /* private fields */ }