mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
eeda96d94a
Signed-off-by: Jason Volk <jason@zemos.net>
14 lines
213 B
Rust
14 lines
213 B
Rust
use std::sync::Arc;
|
|
|
|
use super::Capture;
|
|
|
|
/// Capture instance scope guard.
|
|
pub struct Guard {
|
|
pub(super) capture: Arc<Capture>,
|
|
}
|
|
|
|
impl Drop for Guard {
|
|
#[inline]
|
|
fn drop(&mut self) { self.capture.stop(); }
|
|
}
|