Skip to main content

tuwunel_core/log/capture/
guard.rs

1use std::sync::Arc;
2
3use super::Capture;
4
5/// Capture instance scope guard.
6#[clippy::has_significant_drop]
7pub struct Guard {
8	pub(super) capture: Arc<Capture>,
9}
10
11impl Drop for Guard {
12	#[inline]
13	fn drop(&mut self) { self.capture.stop(); }
14}